Class: VagrantPlugins::HostPath::Legacy::Middleware
- Inherits:
-
Object
- Object
- VagrantPlugins::HostPath::Legacy::Middleware
- Includes:
- VagrantPlugins::HostPath::Logic
- Defined in:
- lib/vagrant-host-path/legacy/middleware.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Middleware
constructor
A new instance of Middleware.
Methods included from VagrantPlugins::HostPath::Logic
#escape_shell, #profile_file, #put_path_file, #put_profile_file
Constructor Details
#initialize(app, env) ⇒ Middleware
Returns a new instance of Middleware.
9 10 11 |
# File 'lib/vagrant-host-path/legacy/middleware.rb', line 9 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
13 14 15 16 17 |
# File 'lib/vagrant-host-path/legacy/middleware.rb', line 13 def call(env) @vm = env[:vm] setup @app.call(env) end |