Method: Jets::Stack::Function#search_expression

Defined in:
lib/jets/stack/function.rb

#search_expressionObject



39
40
41
42
43
44
# File 'lib/jets/stack/function.rb', line 39

def search_expression
  attributes = @template.values.first
  handler = attributes['Properties']['Handler']
  search_expression = handler.split('.')[0..-2].join('.') + '.*'
  search_expression.sub('handlers/shared/', "#{Jets.root}app/shared/")
end