Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::Cloudstack::Servers

Public Instance Methods

all(attributes={}) click to toggle source
# File lib/fog/cloudstack/models/compute/servers.rb, line 12
def all(attributes={})
  response = service.list_virtual_machines(attributes)
  data = response["listvirtualmachinesresponse"]["virtualmachine"] || []
  load(data)
end
bootstrap(new_attributes = {}) click to toggle source
# File lib/fog/cloudstack/models/compute/servers.rb, line 18
def bootstrap(new_attributes = {})
  server = create(new_attributes)
  server.wait_for { ready? }
  server
end
get(server_id) click to toggle source
# File lib/fog/cloudstack/models/compute/servers.rb, line 24
def get(server_id)
  if server = service.list_virtual_machines('id' => server_id)["listvirtualmachinesresponse"]["virtualmachine"].first
    new(server)
  end
rescue Fog::Compute::Cloudstack::BadRequest
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.