Method: App.run

Defined in:
lib/app-ctx.rb

.run(params = {}, &block) ⇒ Object



248
249
250
251
252
253
254
255
256
# File 'lib/app-ctx.rb', line 248

def run params = {}, &block
    # create application container from command line context
    container = Container.new(Config.new(params))
    if block_given? 
        container.execute {|context| block.call(context) }
    else
        container.execute(params)
    end
end