Sha256: fdd89f1a856e26d95556cc2c73f1261f48a8c45d41106127c68160f765ccf4a7
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 Bytes
Contents
module VagrantPlugins module ProviderVirtualBox module Action class SnapshotTake def initialize(app, env) @app = app end def call(env) if env[:snap_name].nil? env[:ui].info I18n.t("vagrant_snap.actions.vm.snapshot_take.taking") else env[:ui].info(I18n.t("vagrant_snap.actions.vm.snapshot_take.taking_named", :snapshot => env[:snap_name]), ) end env[:machine].provider.driver.snapshot_take(env[:snap_name]) @app.call(env) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems