Class: Dpl::Providers::Lambda::Handler

Inherits:
Struct
  • Object
show all
Defined in:
lib/dpl/providers/lambda.rb

Constant Summary collapse

SEP =
{
  default: '.',
  java:    '::',
  dotnet:  '::',
  go:      ''
}

Instance Method Summary collapse

Instance Method Details

#go?Boolean

Returns:

  • (Boolean)


205
206
207
# File 'lib/dpl/providers/lambda.rb', line 205

def go?
  runtime.start_with?('go')
end

#sepObject



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_sObject



196
197
198
# File 'lib/dpl/providers/lambda.rb', line 196

def to_s
  [go? ? nil : module_name, sep, handler_name].compact.join
end