Class: HashiCorp::VagrantVMwarefusion::Action::Mount
- Inherits:
-
Object
- Object
- HashiCorp::VagrantVMwarefusion::Action::Mount
- Defined in:
- lib/vagrant-mount/actions/providers/vmware-fusion/action/mount.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Mount
constructor
A new instance of Mount.
Constructor Details
#initialize(app, env) ⇒ Mount
Returns a new instance of Mount.
5 6 7 8 |
# File 'lib/vagrant-mount/actions/providers/vmware-fusion/action/mount.rb', line 5 def initialize(app, env) @app = app @env = env end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/vagrant-mount/actions/providers/vmware-fusion/action/mount.rb', line 10 def call(env) env[:ui].info(I18n.t('vagrant_mount.actions.vm.mount.mounting', mount: env[:mount_point])) env[:result] = env[:machine].provider.driver.mount(env[:mount_point]) env[:ui].info(I18n.t('vagrant_mount.actions.vm.mount.mounted', mount: env[:mount_point])) @app.call(env) end |