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