Sha256: e10fc8589221c368c4579dff88cfdf9c02bc68f9acea7ee38035a3dd65bbd9e3
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
module VagrantPlugins module ProviderVirtualBox module Action class SnapshotRollback def initialize(app, env) @app = app end def call(env) env[:ui].info I18n.t("vagrant_snap.actions.vm.snapshot_rollback.rolling_back") # Snapshot rollback involves powering off and on the VM # so we need to find the gui state boot_mode = env[:machine].provider_config.gui ? "gui" : "headless" env[:machine].provider.driver.snapshot_rollback(boot_mode,env[:snap_name]) @app.call(env) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-multiprovider-snap-0.0.12 | lib/vagrant-multiprovider-snap/providers/virtualbox/action/snapshot_rollback.rb |