# File lib/fog/vcloud/models/compute/servers.rb, line 15 def all check_href!("Vapp") vapp.load_unless_loaded! load(vapp.children||[]) end
# 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
# 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
Generated with the Darkfish Rdoc Generator 2.