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.


8
9
10
11
12
# File 'lib/vagrant/action/builtin/box_update.rb', line 8

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

Instance Method Details

#call(env) ⇒ Object


14
15
16
# File 'lib/vagrant/action/builtin/box_update.rb', line 14

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