class Object

Public Instance Methods

app_file(path) click to toggle source
# File lib/lamby/templates/shared.rb, line 5
def app_file(path)
  Rails.root.join(path)
end
appname() click to toggle source
# File lib/lamby/templates/shared.rb, line 13
def appname
  k = Rails.application.class
  p = k.respond_to?(:module_parent) ? k.module_parent : k.parent
  p.name
end
handler(event:, context:) click to toggle source
# File lib/lamby/templates/alb/app.rb, line 10
def handler(event:, context:)
  Lamby.handler $app, event, context
end
inst_name() click to toggle source
# File lib/lamby/templates/shared.rb, line 1
def inst_name
  $LAMBY_INSTALLER_NAME
end
tpl_file(path) click to toggle source
# File lib/lamby/templates/shared.rb, line 9
def tpl_file(path)
  "#{__dir__}/#{inst_name}/#{path}"
end