Class: Fog::Compute::Libvirt::Servers
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Libvirt::Servers
- Defined in:
- lib/fog/libvirt/models/compute/servers.rb
Instance Method Summary collapse
Instance Method Details
#all(filter = {}) ⇒ Object
10 11 12 |
# File 'lib/fog/libvirt/models/compute/servers.rb', line 10 def all(filter={}) load(service.list_domains(filter)) end |
#get(uuid) ⇒ Object
14 15 16 17 |
# File 'lib/fog/libvirt/models/compute/servers.rb', line 14 def get(uuid) data = service.list_domains(:uuid => uuid) new data.first if data end |