Class: VagrantPlugins::ProviderZone::Action::PrepareNFSValidIds
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderZone::Action::PrepareNFSValidIds
- Defined in:
- lib/vagrant-zone/action/prepare_nfs_valid_ids.rb
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.
10 11 12 13 |
# File 'lib/vagrant-zone/action/prepare_nfs_valid_ids.rb', line 10 def initialize(app, env) @logger = Log4r::Logger.new("vagrant_zone::action::prepare_nfs_valid_ids") @app = app end |
Instance Method Details
#call(env) ⇒ Object
15 16 17 18 |
# File 'lib/vagrant-zone/action/prepare_nfs_valid_ids.rb', line 15 def call(env) env[:nfs_valid_ids] = [env[:machine].id] @app.call(env) end |