Module: UuAppstudio::Cmd::InputMethods
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., e) raise e end |
#log ⇒ Object
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 |