Class: Fog::Compute::Joyent::Snapshot
- Inherits:
-
Model
- Object
- Model
- Fog::Compute::Joyent::Snapshot
- Defined in:
- lib/fog/joyent/models/compute/snapshot.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/fog/joyent/models/compute/snapshot.rb', line 28 def destroy requires :name requires :machine_id service.delete_machine_snapshot(self.machine_id, self.name) true end |
#machine ⇒ Object
36 37 38 39 40 |
# File 'lib/fog/joyent/models/compute/snapshot.rb', line 36 def machine requires :machine_id service.servers.get(self.machine_id) end |
#reload ⇒ Object
13 14 15 16 17 18 |
# File 'lib/fog/joyent/models/compute/snapshot.rb', line 13 def reload requires :name requires :machine_id service.snapshots.get(self.machine_id, self.name) end |
#start ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/fog/joyent/models/compute/snapshot.rb', line 20 def start requires :name requires :machine_id service.start_machine_from_snapshot(self.machine_id, self.name) true end |