class HashiCorp::VagrantVMwareDesktop::Action::ClearSharedFolders
This class removes all shared folders from the VM.
Public Class Methods
new(app, env)
click to toggle source
# 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
Public Instance Methods
call(env)
click to toggle source
# 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