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
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request