Class: HashiCorp::VagrantVMwareDesktop::Action::ClearSharedFolders
- Inherits:
-
Object
- Object
- HashiCorp::VagrantVMwareDesktop::Action::ClearSharedFolders
- Includes:
- Common
- Defined in:
- lib/vagrant-vmware-desktop/action/clear_shared_folders.rb
Overview
This class removes all shared folders from the VM.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ ClearSharedFolders
constructor
A new instance of ClearSharedFolders.
Methods included from Common
Constructor Details
#initialize(app, env) ⇒ ClearSharedFolders
Returns a new instance of ClearSharedFolders.
10 11 12 13 |
# File 'lib/vagrant-vmware-desktop/action/clear_shared_folders.rb', line 10 def initialize(app, env) @app = app @logger = Log4r::Logger.new("hashicorp::provider::vmware::clear_shared_folders") end |
Instance Method Details
#call(env) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/vagrant-vmware-desktop/action/clear_shared_folders.rb', line 15 def call(env) @logger.info("Clearing shared folders") env[:machine].provider.driver.clear_shared_folders # Carry on @app.call(env) end |