Class: HashiCorp::VagrantVMwareDesktop::Action::PrepareSyncedFolderCleanup

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/vagrant-vmware-desktop/action/prepare_synced_folder_cleanup.rb

Instance Method Summary collapse

Methods included from Common

#to_s

Constructor Details

#initialize(app, env) ⇒ PrepareSyncedFolderCleanup

Returns a new instance of PrepareSyncedFolderCleanup.



10
11
12
# File 'lib/vagrant-vmware-desktop/action/prepare_synced_folder_cleanup.rb', line 10

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

Instance Method Details

#call(env) ⇒ Object



14
15
16
17
18
# File 'lib/vagrant-vmware-desktop/action/prepare_synced_folder_cleanup.rb', line 14

def call(env)
  env[:nfs_valid_ids] = env[:machine].provider.driver.read_running_vms

  @app.call(env)
end