Top Level Namespace
Defined Under Namespace
Modules: Lamby
Instance Method Summary collapse
- #app_file(path) ⇒ Object
- #appname ⇒ Object
- #handler(event:, context:) ⇒ Object
- #inst_name ⇒ Object
- #tpl_file(path) ⇒ Object
Instance Method Details
#app_file(path) ⇒ Object
5 6 7 |
# File 'lib/lamby/templates/shared.rb', line 5 def app_file(path) Rails.root.join(path) end |
#appname ⇒ Object
13 14 15 16 17 |
# 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:) ⇒ Object
10 11 12 |
# File 'lib/lamby/templates/alb/app.rb', line 10 def handler(event:, context:) Lamby.handler $app, event, context, rack: :alb end |
#inst_name ⇒ Object
1 2 3 |
# File 'lib/lamby/templates/shared.rb', line 1 def inst_name $LAMBY_INSTALLER_NAME end |
#tpl_file(path) ⇒ Object
9 10 11 |
# File 'lib/lamby/templates/shared.rb', line 9 def tpl_file(path) "#{__dir__}/#{inst_name}/#{path}" end |