Class: VagrantPlugins::ProviderLibvirt::Action::PrepareNFSValidIds

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

Instance Method Summary collapse

Constructor Details

#initialize(app, _env) ⇒ PrepareNFSValidIds

Returns a new instance of PrepareNFSValidIds.



7
8
9
10
# File 'lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb', line 7

def initialize(app, _env)
  @app = app
  @logger = Log4r::Logger.new('vagrant::action::vm::nfs')
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
# File 'lib/vagrant-libvirt/action/prepare_nfs_valid_ids.rb', line 12

def call(env)
  env[:nfs_valid_ids] = env[:machine].provider.driver.connection.servers.all.map(&:id)
  @app.call(env)
end