Project

rockit-now

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Check and verify external project and rails specific project dependencies. The script will cache results to ensure quick script execution each time.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

Rockit Build Status Gem Status

Rockit is a dsl to help setup, detect changes and keep your environment up-to-date so you can start working as fast as possible.

Install

gem install rockit-now
touch Rockitfile

How to use

Rockit is run at the command line and can be followed by other commands to execute after.

Command line :

rockit <any command>

Include in a ruby file :

require 'rockit'
Rockit::Application.new.run

RockitFile Configuration

Rockit requires a Rockitfile for configuration. This is where you use ruby code and some helpful methods to define your environment. It is highly recommended that you commit your configuration to ensure quick and easy setup.

Commands and Services

All applications require certain commands and services are available before you can get going. If you want to just require these print a message and exit you can use these shortcuts :

command "convert"
service "mysql"

For more control when the services or commands are missing you can use the following syntax :

if_command_missing "convert" do
  puts "required command 'convert' is not available."
  exit
end

if_service_not_running "mysql" do
  puts "required service 'mysql' is not running."
  exit
end

Changes

Applications environments are always changing and your local environment needs to react to them. For instance, when working in a rails team, migrations and gems are often changed and need to be updated. Add the following to your configurtion to detect changes and automatically keep stay up-to-date :

if_file_changed "Gemfile" do
  run "bundle"
end

if_directory_changed "db/migrate" do
  run "rake db:migrate"
end

Documentation and Examples

License

Rockit is released under the MIT license: www.opensource.org/licenses/MIT