Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::Bluebox::Servers

Public Instance Methods

all() click to toggle source
# File lib/fog/bluebox/models/compute/servers.rb, line 12
def all
  data = service.get_blocks.body
  load(data)
end
bootstrap(new_attributes = {}) click to toggle source
# File lib/fog/bluebox/models/compute/servers.rb, line 17
def bootstrap(new_attributes = {})
  server = create(new_attributes)
  server.wait_for { ready? }
  server.setup(:key_data => [server.private_key])
  server
end
get(server_id) click to toggle source
# File lib/fog/bluebox/models/compute/servers.rb, line 24
def get(server_id)
  if server_id && server = service.get_block(server_id).body
    new(server)
  end
rescue Fog::Compute::Bluebox::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.