module LambdaPunch
Constants
- VERSION
Public Instance Methods
error_handler()
click to toggle source
# File lib/lambda_punch.rb, line 51 def error_handler @error_handler ||= lambda do |e| logger.error "Queue#call::error => #{e.message}" end end
error_handler=(func)
click to toggle source
# File lib/lambda_punch.rb, line 57 def error_handler=(func) @error_handler = func end
handled!(context)
click to toggle source
# File lib/lambda_punch.rb, line 47 def handled!(context) Notifier.handled!(context) end
logger()
click to toggle source
# File lib/lambda_punch.rb, line 43 def logger @logger ||= Logger.new.logger end
loop()
click to toggle source
# File lib/lambda_punch.rb, line 31 def loop Api.loop end
push(&block)
click to toggle source
# File lib/lambda_punch.rb, line 23 def push(&block) Queue.push(block) end
register!()
click to toggle source
# File lib/lambda_punch.rb, line 27 def register! Api.register! end
start_server!()
click to toggle source
# File lib/lambda_punch.rb, line 35 def start_server! Server.start! end
start_worker!()
click to toggle source
# File lib/lambda_punch.rb, line 39 def start_worker! Worker.start! end