Class: VagrantPlugins::ProviderZone::Action::PrepareNFSValidIds
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderZone::Action::PrepareNFSValidIds
- 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
- #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.
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 |