Class: Dpl::Providers::Lambda::Handler
- Inherits:
-
Struct
- Object
- Struct
- Dpl::Providers::Lambda::Handler
- Defined in:
- lib/dpl/providers/lambda.rb
Constant Summary collapse
- SEP =
{ default: '.', java: '::', dotnet: '::', go: '' }.freeze
Instance Method Summary collapse
Instance Method Details
#go? ⇒ Boolean
205 206 207 |
# File 'lib/dpl/providers/lambda.rb', line 205 def go? runtime.start_with?('go') end |
#sep ⇒ Object
200 201 202 203 |
# File 'lib/dpl/providers/lambda.rb', line 200 def sep key = SEP.keys.detect { |key| runtime.start_with?(key.to_s) } SEP[key || :default] end |
#to_s ⇒ Object
196 197 198 |
# File 'lib/dpl/providers/lambda.rb', line 196 def to_s [go? ? nil : module_name, sep, handler_name].compact.join end |