Methods

Files

Class/Module Index [+]

Quicksearch

Fog::Vcloud::Compute::Servers

Public Instance Methods

all() click to toggle source
# File lib/fog/vcloud/models/compute/servers.rb, line 15
def all
  check_href!("Vapp")
  vapp.load_unless_loaded!
  load(vapp.children||[])
end
create(options) click to toggle source
# File lib/fog/vcloud/models/compute/servers.rb, line 31
def create options
  check_href!
  options[:vdc_uri] = href
  data = connection.instantiate_vapp_template(options).body
  object = new(data)
  object
end
get(uri) click to toggle source
# File lib/fog/vcloud/models/compute/servers.rb, line 21
def get(uri)
  if data = connection.get_vapp(uri)
    # If no tasks returned, set a mock entry to flush on reload
    data.body[:Tasks] = {} unless data.body[:Tasks]
    new(data.body)
  end
rescue Fog::Errors::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.