Class: Caterer::Action::Berkshelf::UI

Inherits:
Caterer::Action::Base show all
Defined in:
lib/caterer/action/berkshelf/ui.rb

Instance Method Summary collapse

Methods inherited from Caterer::Action::Base

#initialize

Constructor Details

This class inherits a constructor from Caterer::Action::Base

Instance Method Details

#call(env) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/caterer/action/berkshelf/ui.rb', line 6

def call(env)
  
  ::Berkshelf.ui = begin
    ui = env[:ui].dup
    ui.resource = "Berkshelf"
    ui
  end

  @app.call(env)
end