Class: Berkshelf::Vagrant::Action::SetUI
- Inherits:
-
Object
- Object
- Berkshelf::Vagrant::Action::SetUI
- Defined in:
- lib/berkshelf/vagrant/action/set_ui.rb
Overview
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, env) ⇒ SetUI
constructor
A new instance of SetUI.
Constructor Details
#initialize(app, env) ⇒ SetUI
Returns a new instance of SetUI.
6 7 8 |
# File 'lib/berkshelf/vagrant/action/set_ui.rb', line 6 def initialize(app, env) @app = app end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 |
# File 'lib/berkshelf/vagrant/action/set_ui.rb', line 10 def call(env) Berkshelf.ui = env[:berkshelf].ui @app.call(env) end |