Fix up style nit.
This commit is contained in:
parent
eff2b2d7b4
commit
a7008ef5ec
|
@ -12,7 +12,7 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
vm.env.lock("machine-snapshot-stack") do
|
vm.env.lock("machine-snapshot-stack") do
|
||||||
m.call(vm,opts)
|
m.call(vm, opts)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -20,14 +20,14 @@ module VagrantPlugins
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
|
|
||||||
def push(machine,opts={})
|
def push(machine, opts={})
|
||||||
snapshot_name = "push_#{Time.now.to_i}_#{rand(10000)}"
|
snapshot_name = "push_#{Time.now.to_i}_#{rand(10000)}"
|
||||||
|
|
||||||
# Save the snapshot. This will raise an exception if it fails.
|
# Save the snapshot. This will raise an exception if it fails.
|
||||||
machine.action(:snapshot_save, snapshot_name: snapshot_name)
|
machine.action(:snapshot_save, snapshot_name: snapshot_name)
|
||||||
end
|
end
|
||||||
|
|
||||||
def pop(machine,opts={})
|
def pop(machine, opts={})
|
||||||
# By reverse sorting, we should be able to find the first
|
# By reverse sorting, we should be able to find the first
|
||||||
# pushed snapshot.
|
# pushed snapshot.
|
||||||
name = nil
|
name = nil
|
||||||
|
|
Loading…
Reference in New Issue