Sha256: 2d1cbff21c35cb5294e8322cfe099535f2fee4e931f3398debc730fc41fd061c
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 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" : "nogui" 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/vmware_workstation/action/snapshot_rollback.rb |