Methods

Files

Class/Module Index [+]

Quicksearch

Fog::Compute::Slicehost::Servers

Public Instance Methods

all() click to toggle source
# File lib/fog/slicehost/models/compute/servers.rb, line 12
def all
  data = connection.get_slices.body['slices']
  load(data)
end
bootstrap(new_attributes = {}) click to toggle source
# File lib/fog/slicehost/models/compute/servers.rb, line 17
def bootstrap(new_attributes = {})
  server = create(new_attributes)
  server.wait_for { ready? }
  server.setup(:password => server.password)
  server
end
get(server_id) click to toggle source
# File lib/fog/slicehost/models/compute/servers.rb, line 24
def get(server_id)
  if server_id && server = connection.get_slice(server_id).body
    new(server)
  elsif !server_id
    nil
  end
rescue Excon::Errors::Forbidden
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.