Class: VagrantPlugins::Utm::Action::CheckUtm
- Inherits:
-
Object
- Object
- VagrantPlugins::Utm::Action::CheckUtm
- Defined in:
- lib/vagrant_utm/action/check_utm.rb
Overview
Checks that UTM is installed and ready to be used.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, _env) ⇒ CheckUtm
constructor
A new instance of CheckUtm.
Constructor Details
#initialize(app, _env) ⇒ CheckUtm
Returns a new instance of CheckUtm.
13 14 15 16 |
# File 'lib/vagrant_utm/action/check_utm.rb', line 13 def initialize(app, _env) @app = app @logger = Log4r::Logger.new("vagrant::provider::utm") end |
Instance Method Details
#call(env) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/vagrant_utm/action/check_utm.rb', line 18 def call(env) # This verifies that UTM 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 |