lib/lamby/handler.rb in lamby-4.3.3 vs lib/lamby/handler.rb in lamby-5.0.0

- old
+ new

@@ -90,14 +90,12 @@ rack_response elsif lambdakiq? Lambdakiq.cmd event: @event, context: @context elsif lambda_cable? LambdaCable.cmd event: @event, context: @context - elsif command? - Lamby::Command.cmd event: @event, context: @context - elsif runner? - Lamby::Runner.cmd event: @event, context: @context + elsif LambdaConsole.handle?(@event) + LambdaConsole.handle(@event) elsif event_bridge? Lamby.config.event_bridge_handler.call @event, @context else [404, {}, StringIO.new('')] end @@ -117,17 +115,9 @@ @event.key?('source') && @event.key?('detail') && @event.key?('detail-type') end def lambdakiq? defined?(::Lambdakiq) && ::Lambdakiq.jobs?(@event) - end - - def runner? - Lamby::Runner.handle?(@event) - end - - def command? - Lamby::Command.handle?(@event) end def lambda_cable? defined?(::LambdaCable) && ::LambdaCable.handle?(@event, @context) end