Sha256: d02795dcd5ec542c1e8de1c4c9aa77537fdc93ee97368572adf53bf1b77e3f92

Contents?: true

Size: 314 Bytes

Versions: 142

Compression:

Stored size: 314 Bytes

Contents

require "bundler/setup"
require "jets"
Jets.once  # runs once in lambda execution context

<% @vars.functions.each do |function_name|
  handler = @vars.handler_for(function_name)
  meth = handler.split('.').last
-%>
def <%= meth -%>(event:, context:)
  Jets.process(event, context, "<%= handler -%>")
end
<% end %>

Version data entries

142 entries across 142 versions & 4 rubygems

Version Path
jets-4.0.12 lib/jets/builders/templates/handler.rb
jets-4.0.11 lib/jets/builders/templates/handler.rb
jets-4.0.10 lib/jets/builders/templates/handler.rb
jets-4.0.9 lib/jets/builders/templates/handler.rb
jets-4.0.8 lib/jets/builders/templates/handler.rb
jets-4.0.7 lib/jets/builders/templates/handler.rb
jets-4.0.6 lib/jets/builders/templates/handler.rb
jets-4.0.5 lib/jets/builders/templates/handler.rb
jets-4.0.4 lib/jets/builders/templates/handler.rb
jets-4.0.3 lib/jets/builders/templates/handler.rb
jets-4.0.2 lib/jets/builders/templates/handler.rb
jets-4.0.1 lib/jets/builders/templates/handler.rb
jets-4.0.0 lib/jets/builders/templates/handler.rb
jets-3.2.2 lib/jets/builders/templates/handler.rb
jets-3.2.1 lib/jets/builders/templates/handler.rb
jets.benforeva-3.0.17.pre.mount.pre.fix lib/jets/builders/templates/handler.rb
jets-3.2.0 lib/jets/builders/templates/handler.rb
jets-3.1.5 lib/jets/builders/templates/handler.rb
jets-3.1.4 lib/jets/builders/templates/handler.rb
jets-3.1.3 lib/jets/builders/templates/handler.rb