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.


5
6
7
8
# File 'lib/vagrant-libvirt/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-libvirt/action/prepare_nfs_valid_ids.rb', line 10

def call(env)
  env[:nfs_valid_ids] = env[:libvirt_compute].servers.all.map(&:id)
  @app.call(env)
end