Class: VagrantPlugins::HostPath::Middleware

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

Instance Method Summary collapse

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