Ec2l aims to provide an efficient ruby developer oriented UI to EC2.
Add this line to your application's Gemfile:
gem 'ec2l'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ec2l
You can call public client methods directly from the ec2l command line, though a better way is to use the shell, which relies on pry:
$ ec2l shell
...
[2] pry(#<Ec2l::Client>)> h # print help
Usage: action parameters...
available actions:
[
[0] associate(address, id) Ec2l::Client
[1] ins() Ec2l::Client
...
[2] pry(#<Ec2l::Client>)> show-doc ins # print documentation on ins method
...
Public: return virtual machines instances with few details
Examples
ins[0]
=> {:instanceId=>"i-deadbeef", :instanceState=>
{"code"=>"16", "name"=>"running"},
:ipAddress=>"10.1.1.2", :tagSet=>{:k=>"v"}}
Returns an array with instanceId, ipAddress, tagSet, instanceState in a hash
[7] pry(#<Ec2l::Client>)> ins # launch ins method
- Fork it ( https://github.com/[my-github-username]/ec2l/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request