Class: Vagrant::Action::Builtin::BoxUpdate

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/action/builtin/box_update.rb

Overview

This middleware updates a specific box if there are updates available.

Instance Method Summary collapse

Constructor Details

#initialize(app, env) ⇒ BoxUpdate

Returns a new instance of BoxUpdate.



11
12
13
14
15
# File 'lib/vagrant/action/builtin/box_update.rb', line 11

def initialize(app, env)
  @app    = app
  @logger = Log4r::Logger.new(
    "vagrant::action::builtin::box_update")
end

Instance Method Details

#call(env) ⇒ Object



17
18
19
# File 'lib/vagrant/action/builtin/box_update.rb', line 17

def call(env)
  machine = env[:machine]
end