Sha256: 634f2087cf0e2d3f998b184942a8eccdd61e08cd8e885fc2f62c59c6f2710b91

Contents?: true

Size: 343 Bytes

Versions: 15

Compression:

Stored size: 343 Bytes

Contents

require 'json'

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jets-5.0.13 lib/jets/poly/lambda_executor.rb
jets-5.0.12 lib/jets/poly/lambda_executor.rb
jets-5.0.11 lib/jets/poly/lambda_executor.rb
jets-5.0.10 lib/jets/poly/lambda_executor.rb
jets-5.0.9 lib/jets/poly/lambda_executor.rb
jets-5.0.8 lib/jets/poly/lambda_executor.rb
jets-5.0.7 lib/jets/poly/lambda_executor.rb
jets-5.0.6 lib/jets/poly/lambda_executor.rb
jets-5.0.5 lib/jets/poly/lambda_executor.rb
jets-5.0.4 lib/jets/poly/lambda_executor.rb
jets-5.0.3 lib/jets/poly/lambda_executor.rb
jets-5.0.2 lib/jets/poly/lambda_executor.rb
jets-5.0.1 lib/jets/poly/lambda_executor.rb
jets-5.0.0 lib/jets/poly/lambda_executor.rb
jets-5.0.0.beta1 lib/jets/poly/lambda_executor.rb