Class: VagrantPlugins::ProviderVeertu::Action::CheckVeertu
- Inherits:
-
Object
- Object
- VagrantPlugins::ProviderVeertu::Action::CheckVeertu
- Defined in:
- lib/vagrant-veertu/action/check_veertu.rb
Overview
Checks that Veertu is installed and ready to be used.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ CheckVeertu
constructor
A new instance of CheckVeertu.
Constructor Details
#initialize(app, env) ⇒ CheckVeertu
Returns a new instance of CheckVeertu.
6 7 8 |
# File 'lib/vagrant-veertu/action/check_veertu.rb', line 6 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/vagrant-veertu/action/check_veertu.rb', line 10 def call(env) # This verifies that Veertu is installed and the driver is # ready to function. If not, then an exception will be raised # which will break us out of execution of the middleware sequence. Driver::Meta.new.verify! # Carry on. @app.call(env) end |