Class: HashiCorp::VagrantVMwarefusion::Action::SnapshotTake

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-multiprovider-snap/providers/vmware_fusion/action/snapshot_take.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ SnapshotTake

Returns a new instance of SnapshotTake.



9
10
11
# File 'lib/vagrant-multiprovider-snap/providers/vmware_fusion/action/snapshot_take.rb', line 9

def initialize(app, env)
    @app = app
end

Instance Method Details

#call(env) ⇒ Object



13
14
15
16
17
18
19
20
# File 'lib/vagrant-multiprovider-snap/providers/vmware_fusion/action/snapshot_take.rb', line 13

def call(env)

    env[:ui].info I18n.t("vagrant_snap.actions.vm.snapshot_take.taking")
    env[:machine].provider.driver.snapshot_take

    @app.call(env)

end