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.



7
8
9
# File 'lib/vagrant-vmware-desktop/action/prepare_synced_folder_cleanup.rb', line 7

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

Instance Method Details

#call(env) ⇒ Object



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

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

  @app.call(env)
end