Class: VagrantPlugins::ProviderZone::Action::PrepareNFSValidIds

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

Overview

This is used to prepare NFS ids for NFS Sharing

Instance Method Summary collapse

Constructor Details

#initialize(app, _env) ⇒ PrepareNFSValidIds

Returns a new instance of PrepareNFSValidIds.



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

def initialize(app, _env)
  @logger = Log4r::Logger.new('vagrant_zones::action::prepare_nfs_valid_ids')
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



17
18
19
20
# File 'lib/vagrant-zones/action/prepare_nfs_valid_ids.rb', line 17

def call(env)
  env[:nfs_valid_ids] = [env[:machine].id]
  @app.call(env)
end