Rig

Command line cloud provisioning tool.

Using the Fog (http://fog.io/) gem, provide a suite of tools for managing provisioning from the command line.

Code is still in alpha. I'm working on documentation and refactoring things to be more generalized.

Installation

Add this line to your application's Gemfile:

gem 'rig'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rig

Usage

$ rig -h

The rig command line uses Clamp to handle options parsing and such. Clamp automatically generates help information.

Managing Environments

Instances

The rig instance command allows you to manage instances in your accounts.

To view all of your instances in your account, run:

rig instance list

Generally, you will not create instances manually, instance creation should be handled by the environment commands.

Environments

The rig environment command allows you to manage environments in your accounts.

Developer Notes

Filters

Notes about handling filters on #all methods of Fog.

full filters list can be found at: http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstances.html

pass an array to a filter to do an OR type query the below means running or stopped:

filters["instance-state-name"] = %w{running stopped}

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