Class: VagrantBoxVersion::Action::Check
- Inherits:
-
Object
- Object
- VagrantBoxVersion::Action::Check
- Includes:
- VersionChecking
- Defined in:
- lib/vagrant_box_version/action.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ Check
constructor
A new instance of Check.
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 |