Sha256: a26d611465f513a3d230d486fbf4c039a814b010e011bb10ce4530acb8dd05ff

Contents?: true

Size: 349 Bytes

Versions: 255

Compression:

Stored size: 349 Bytes

Contents

require 'json'

class Jets::PolyFun
  class LambdaExecutor
    def initialize(task)
      @task = task
    end

    def run(event, context)
      executor_class = "Jets::PolyFun::#{@task.lang.capitalize}Executor".constantize
      executor = executor_class.new(@task)
      text = executor.run(event, context)
      JSON.load(text)
    end
  end
end

Version data entries

255 entries across 255 versions & 4 rubygems

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