Sha256: 9e84e8e204255c3965b56882ae06e107fc0fae34ff6924e58cc7f401cbbc4a2e
Contents?: true
Size: 1.67 KB
Versions: 1
Compression:
Stored size: 1.67 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] == 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cft_smartcloud-0.1.4 | README.rdoc |