Class: Fog::Compute::Libvirt::Servers

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/libvirt/models/compute/servers.rb

Instance Method Summary collapse

Instance Method Details

#all(filter = {}) ⇒ Object



12
13
14
# File 'lib/fog/libvirt/models/compute/servers.rb', line 12

def all(filter={})
  load(service.list_domains(filter))
end

#get(uuid) ⇒ Object



16
17
18
19
# File 'lib/fog/libvirt/models/compute/servers.rb', line 16

def get(uuid)
  data = service.list_domains(:uuid => uuid)
  new data.first if data
end