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