Class: VagrantPlugins::ProviderVeertu::Action::PrepareNFSValidIds

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-veertu/action/prepare_nfs_valid_ids.rb

Instance Method Summary collapse

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