Methods

Files

Class/Module Index [+]

Quicksearch

Fog::Compute::Vmfusion::Servers

Public Instance Methods

all(filter=nil) click to toggle source
# File lib/fog/vmfusion/models/compute/servers.rb, line 12
def all(filter=nil)

  data=[]

  filter={} if filter.nil?
  unless filter.has_key?(:name)
    vms=::Fission::VM.all
    vms.each do |vm|
      data << { :raw => vm}
    end
  else
    data << { :raw => ::Fission::VM.new(filter[:name])}
  end

  load(data)

end
get(name) click to toggle source
# File lib/fog/vmfusion/models/compute/servers.rb, line 30
def get(name)
  self.all(:name =>name).first
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.