Class: Fog::Compute::OpenNebula::Servers
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::OpenNebula::Servers
- Defined in:
- lib/fog/opennebula/models/compute/servers.rb
Instance Method Summary collapse
Instance Method Details
#all(filter = {}) ⇒ Object
13 14 15 |
# File 'lib/fog/opennebula/models/compute/servers.rb', line 13 def all(filter={}) load(service.list_vms(filter)) end |
#get(id) ⇒ Object
17 18 19 20 |
# File 'lib/fog/opennebula/models/compute/servers.rb', line 17 def get(id) data = service.list_vms({:id => id}) new data.first unless data.empty? end |