Class: Vagrant::Action::VM::PruneNFSExports
- Inherits:
-
Object
- Object
- Vagrant::Action::VM::PruneNFSExports
- Defined in:
- lib/vagrant/action/vm/prune_nfs_exports.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ PruneNFSExports
constructor
A new instance of PruneNFSExports.
Constructor Details
#initialize(app, env) ⇒ PruneNFSExports
Returns a new instance of PruneNFSExports.
5 6 7 |
# File 'lib/vagrant/action/vm/prune_nfs_exports.rb', line 5 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/vagrant/action/vm/prune_nfs_exports.rb', line 9 def call(env) if env[:host] valid_ids = env[:vm].driver.read_vms env[:host].nfs_prune(valid_ids) end @app.call(env) end |