Class: Fog::Libvirt::Compute::Servers
- Inherits:
-
Collection
- Object
- Collection
- Fog::Libvirt::Compute::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 |