Class: VagrantBoxVersion::Action::Check

Inherits:
Object
  • Object
show all
Includes:
VersionChecking
Defined in:
lib/vagrant_box_version/action.rb

Instance Method Summary collapse

Methods included from VersionChecking

#check, #local_version, #remote_version

Constructor Details

#initialize(app, env) ⇒ Check

Returns a new instance of Check.



8
9
10
# File 'lib/vagrant_box_version/action.rb', line 8

def initialize(app, env)
  @app = app
end

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
# File 'lib/vagrant_box_version/action.rb', line 12

def call(env)
  check(env[:machine], env[:ui])
  @app.call(env)
end