Sha256: d0a4d631a8f63153c8705a2f451d5ca7f221bc92e99559633e650de8d0dc33ae
Contents?: true
Size: 738 Bytes
Versions: 2
Compression:
Stored size: 738 Bytes
Contents
module HashiCorp module VagrantVMwareworkstation 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
2 entries across 2 versions & 1 rubygems