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-1.9.20 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.19 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.18 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.17 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.16 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.15 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.14 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.13 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.12 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.11 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.10 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.9 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.8 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.7 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.6 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.5 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.4 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.3 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.2 lib/jets/poly_fun/lambda_executor.rb
jets-1.9.1 lib/jets/poly_fun/lambda_executor.rb