Cosmo

TODO: Write a gem description

Installation

Add this line to your application's Gemfile:

gem 'cosmo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cosmo

Usage

Create a servers.yml in file . in the following format:

group_name:
  host_name:
    - account1
    - account2

For example:

workers:
  xyz.com:
    - bill
  abc.com:
    - jeff

The create a ruby script:

require 'cosmo'

job "install ruby 1.9.2" do
  on_group "workers" do |g|
    commands "rvm install 1.9.2" do |c|
      g.run c
    end
  end
end

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request