Class: Berkshelf::Vagrant::Action::SetUI

Inherits:
Object
  • Object
show all
Defined in:
lib/berkshelf/vagrant/action/set_ui.rb

Overview

Author:

Instance Method Summary collapse

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