Sha256: d2c75bc5fcb4d73748cf77c562278853a3dd642e06c20ba545a089ca831e2930
Contents?: true
Size: 1.73 KB
Versions: 4
Compression:
Stored size: 1.73 KB
Contents
= smartcloud Provides support for interacting with IBM SmartCloud API and CLI tools == installation from rubygems.org: gem install cft_smartcloud locally: rake build gem install pkg/[name of generated gem] == setup Please set up SMARTCLOUD_USERNAME and SMARTCLOUD_PASSWORD in your .bash_profile export SMARTCLOUD_USERNAME=[your username] export SMARTCLOUD_PASSWORD=[your password] == screencast http://www.youtube.com/cohesiveft#p/u/0/-WdSHP2iwDM == using the console script/console >> @smartcloud.display_instances >> @smartcloud.display_volumes(:Location => 101) >> @smartcloud.display_instances(:Location => 82, :Name => "namematch") >> @smartcloud.poll_for_volume_state(12345, :unmounted) The console predefines the @smartcloud instance variable that is set up from the environment variables SMARTCLOUD_USERNAME and SMARTCLOUD_PASSWORD automatically (it's created at the bottom of smartcloud.rb) == using the commandline helper smartcloud [method of smartcloud.rb] to see a list of methods: smartcloud help examples: smartcloud display_volumes smartcloud display_instances smartcloud "describe_instance('12345')" smartcloud "display_instances(:Location => 82, :Name => 'match_this')" smartcloud delete_unused_keys # this one will prompt for every key The 'display_*' methods are intended to generate pretty human readable displays, while the describe methods will return pretty-formatted hashes, or singular values. smartcloud display_volumes == get a list of all available methods console: >> @smartcloud.help commandline > smartcloud help These won't tell you the arguments, you have to look at smartcloud.rb for the args. == Copyright Copyright (c) 2011 CohesiveFT. See LICENSE for details.
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
cft_smartcloud-0.2.2 | README.rdoc |
cft_smartcloud-0.1.9 | README.rdoc |
cft_smartcloud-0.1.8 | README.rdoc |
cft_smartcloud-0.1.5 | README.rdoc |