Module: HashiCorp::VagrantVMwarefusion::Action
- Defined in:
- lib/vagrant-multiprovider-snap/providers/vmware_fusion/action.rb,
lib/vagrant-multiprovider-snap/providers/vmware_fusion/action/snapshot_take.rb,
lib/vagrant-multiprovider-snap/providers/vmware_fusion/action/snapshot_rollback.rb
Defined Under Namespace
Classes: SnapshotRollback, SnapshotTake
Class Method Summary
collapse
Class Method Details
.action_snapshot_rollback ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/vagrant-multiprovider-snap/providers/vmware_fusion/action.rb', line 25
def self.action_snapshot_rollback
Vagrant::Action::Builder.new.tap do |b|
b.use CheckVMware
b.use Call, Created do |env, b2|
if env[:result]
b2.use SnapshotRollback
else
b2.use MessageNotCreated
end
end
end
end
|
.action_snapshot_take ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/vagrant-multiprovider-snap/providers/vmware_fusion/action.rb', line 12
def self.action_snapshot_take
Vagrant::Action::Builder.new.tap do |b|
b.use CheckVMware
b.use Call, Created do |env, b2|
if env[:result]
b2.use SnapshotTake
else
b2.use MessageNotCreated
end
end
end
end
|