Module: UuAppstudio::Cmd::InputMethods

Extended by:
InputMethods
Included in:
InputMethods
Defined in:
app/helpers/input_methods.rb

Instance Method Summary collapse

Instance Method Details

#cmd(ctx) ⇒ Object



11
12
13
14
15
16
17
18
# File 'app/helpers/input_methods.rb', line 11

def cmd(ctx)
  # update ctx.parameters (add logger)
  ctx.parameters[:appLog] = log
  yield if block_given?
rescue Exception => e
  log.error(e.message, e)
  raise e
end

#logObject



20
21
22
# File 'app/helpers/input_methods.rb', line 20

def log
  UU::OS::Logger.new(self, :appLogUri => UU::OS::Application::Config[:applog_uri])
end