class HashiCorp::VagrantVMwareDesktop::Action::PruneNFSExports
Public Class Methods
new(app, env)
click to toggle source
# File lib/vagrant-vmware-desktop/action/prune_nfs_exports.rb, line 7 def initialize(app, env) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/vagrant-vmware-desktop/action/prune_nfs_exports.rb, line 11 def call(env) if env[:host] vms = env[:machine].provider.driver.read_running_vms env[:host].nfs_prune(vms) end @app.call(env) end