Method: Jets::PolyFun::BaseExecutor#handler
- Defined in:
- lib/jets/poly_fun/base_executor.rb
#handler ⇒ Object
116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/jets/poly_fun/base_executor.rb', line 116 def handler # Must use FunctionProperties to get the handler because that the class that combines # the mutiple sources of how the handler can get set. # puts "handler path #{@task.handler_path}" # # IE: Jets::Cfn::TemplateBuilders::FunctionProperties::PythonBuilder builder_class = "Jets::Cfn::TemplateBuilders::FunctionProperties::#{@task.lang.to_s.classify}Builder".constantize builder = builder_class.new(@task) full_handler = builder.properties["Handler"] # full handler here File.extname(full_handler).sub(/^./,'') # the extension of the full handler is the handler end |