Class: VagrantPlugins::ProviderVeertu::Action::PrepareNFSValidIds
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderVeertu::Action::PrepareNFSValidIds
- Defined in:
- lib/vagrant-veertu/action/prepare_nfs_valid_ids.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ PrepareNFSValidIds
constructor
A new instance of PrepareNFSValidIds.
Constructor Details
#initialize(app, env) ⇒ PrepareNFSValidIds
Returns a new instance of PrepareNFSValidIds.
5 6 7 8 |
# File 'lib/vagrant-veertu/action/prepare_nfs_valid_ids.rb', line 5 def initialize(app, env) @app = app @logger = Log4r::Logger.new("vagrant::action::vm::nfs") end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 |
# File 'lib/vagrant-veertu/action/prepare_nfs_valid_ids.rb', line 10 def call(env) env[:nfs_valid_ids] = env[:machine].provider.driver.read_vms.values @app.call(env) end |