Class: VagrantPlugins::HostPath::Legacy::Middleware

Inherits:
Object
  • Object
show all
Includes:
VagrantPlugins::HostPath::Logic
Defined in:
lib/vagrant-host-path/legacy/middleware.rb

Instance Method Summary collapse

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