vagrant/plugins/providers/virtualbox/action/prune_nfs_exports.rb

21 lines
391 B
Ruby
Raw Normal View History

2012-08-14 06:31:12 +00:00
module VagrantPlugins
module ProviderVirtualBox
module Action
class PruneNFSExports
def initialize(app, env)
@app = app
end
def call(env)
if env[:host]
vms = env[:machine].provider.driver.read_vms
env[:host].nfs_prune(vms.values)
2012-08-14 06:31:12 +00:00
end
@app.call(env)
end
end
end
end
end