Class: Fog::Compute::Rackspace::Servers
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Rackspace::Servers
- Defined in:
- lib/fog/rackspace/models/compute/servers.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
10 11 12 13 |
# File 'lib/fog/rackspace/models/compute/servers.rb', line 10 def all data = service.list_servers_detail.body['servers'] load(data) end |
#bootstrap(new_attributes = {}) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/fog/rackspace/models/compute/servers.rb', line 15 def bootstrap(new_attributes = {}) server = create(new_attributes) server.wait_for { ready? } server.setup(:password => server.password) server end |