public
Description: A Gem for managing Rackspace Cloud Server instances.
Homepage:
Clone URL: git://github.com/ggoodale/rackspace_cloud.git
name age message
file .gitignore Tue Jul 21 00:06:26 -0700 2009 add pkg to .gitignore [ggoodale]
file MIT-LICENSE Tue Jul 14 16:54:00 -0700 2009 initial commit [ggoodale]
file README Loading commit data...
file Rakefile Tue Jul 21 00:04:45 -0700 2009 Use jeweler for gem junk; added remaining serve... [ggoodale]
file VERSION
file init.rb Tue Jul 14 16:54:00 -0700 2009 initial commit [ggoodale]
file install.rb Tue Jul 14 16:54:00 -0700 2009 initial commit [ggoodale]
directory lib/
file rackspace_cloud.gemspec
directory test/ Mon Jul 20 02:16:01 -0700 2009 authentication, server list and new http code b... [ggoodale]
README
Example:

>> require 'rackspace_cloud'
>> cloud = RackspaceCloud::Base.new(:user => "gomer", :access_key => "aabbccddaabbccddaabbccdd")
=> #<RackspaceCloud::Base:0x1065f44 @access_key="aabbccddaabbccddaabbccdd", @user="gomer">
>> cloud.connect
=> nil
>> cloud.servers
=> []
>> new_server = cloud.create_server('development', 1, 8) # create a 256MB Ubuntu 9.04 instance)
=> #<RackspaceCloud::Server:0x1054a78 @image=#<RackspaceCloud::Image:0x10598e8 @name="Ubuntu 9.04 (jaunty)", 
@updated="2009-07-20T09:14:37-05:00", @created="2009-07-20T09:14:37-05:00", @status="ACTIVE", @rackspace_id=8>, 
@public_ips=["174.xxx.xxx.xxx"], @flavor=#<RackspaceCloud::Flavor:0x105d40c @name="256 slice", @ram=256, @disk=10, 
@rackspace_id=1>, @name="development", @progress=80, @adminPass="developmentU5fG3", @host_id="a7765fde333eead221", 
@private_ips=["10.xxx.xxx.xxx"], @rackspace_id=1, @status="BUILD">

... wait a while ...

>> new_server.refresh.status
=> "ACTIVE"
>> new_server.hard_reboot
=> nil
>> new_server.refresh.status
=> "HARD_REBOOT"