lib/jets/poly_fun/base_executor.rb in jets-0.8.0 vs lib/jets/poly_fun/base_executor.rb in jets-0.8.1
- old
+ new
@@ -116,11 +116,11 @@
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
+ # IE: Jets::Cfn::Builders::FunctionProperties::PythonBuilder
+ builder_class = "Jets::Cfn::Builders::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
memoize :handler