Class: Fog::Ovirt::Compute::Servers
- Inherits:
-
Collection
- Object
- Collection
- Fog::Ovirt::Compute::Servers
- Defined in:
- lib/fog/ovirt/models/compute/servers.rb
Instance Method Summary collapse
Instance Method Details
#all(filters = {}) ⇒ Object
10 11 12 |
# File 'lib/fog/ovirt/models/compute/servers.rb', line 10 def all(filters = {}) load service.list_virtual_machines(filters) end |
#bootstrap(new_attributes = {}) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/fog/ovirt/models/compute/servers.rb', line 18 def bootstrap(new_attributes = {}) server = create(new_attributes) server.wait_for { stopped? } server.start server end |
#get(id) ⇒ Object
14 15 16 |
# File 'lib/fog/ovirt/models/compute/servers.rb', line 14 def get(id) new service.get_virtual_machine(id) end |