This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Jul 21 00:06:26 -0700 2009 | |
| |
MIT-LICENSE | Tue Jul 14 16:54:00 -0700 2009 | |
| |
README | ||
| |
Rakefile | Tue Jul 21 00:04:45 -0700 2009 | |
| |
VERSION | ||
| |
init.rb | Tue Jul 14 16:54:00 -0700 2009 | |
| |
install.rb | Tue Jul 14 16:54:00 -0700 2009 | |
| |
lib/ | ||
| |
rackspace_cloud.gemspec | ||
| |
test/ | Mon Jul 20 02:16:01 -0700 2009 |
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"








