Sha256: 4a16ec824cb5dcf611b1784fde1c7a2d320250838bb405499863fa6bc585e353
Contents?: true
Size: 737 Bytes
Versions: 11
Compression:
Stored size: 737 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) @app.call(env) end end end end end
Version data entries
11 entries across 11 versions & 2 rubygems