Sha256: 236de4d18b2f06ca57ddfc5846e4a7913a07b8addfd4e6129d27157bf0473c76

Contents?: true

Size: 744 Bytes

Versions: 255

Compression:

Stored size: 744 Bytes

Contents

module Jets::Lambda
  class Function < Functions
    # Override and change the signature so we do not have to provide info at
    # initialization. So:
    #
    #   hello_function = HelloFunction.new
    #   hello_function.lambda_handler(event, context)
    #
    # Normally controller and job functions initialize like this:
    #
    #   controller = PostController.new(event, context, "handler_handler")
    def initialize
    end

    def self.handler
      handler_task.meth
    end

    def self.handler_task
      tasks.first
    end

    # Used by main_processor.rb.  Same interface as controllers and jobs.
    def self.process(event, context, meth)
      function = new
      function.send(handler, event, context)
    end
  end
end

Version data entries

255 entries across 255 versions & 4 rubygems

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