open-abap / aws-lambda-abap-runtime

AWS Lambda ABAP custom runtime
MIT License
9 stars 1 forks source link

change the use of the handler to the standard format file.method #4

Open JohannesKonings opened 4 years ago

JohannesKonings commented 4 years ago

As described here https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html the standard of the handler is `file.method´.

_HANDLER – The location to the handler, from the function's configuration. The standard format is file.method, where file is the name of the file without an extension, and method is the name of a method or function that's defined in the file.

Currently the complete file name must be entered.

image

The following would correspond more to the standard format:

This should then be taken into account at this points:

https://github.com/open-abap/aws-lambda-abap-runtime/blob/88d291de3a2a9198f9b9fdb0a1d7d10ccb7b4a06/runtime.js#L4

https://github.com/open-abap/aws-lambda-abap-runtime/blob/88d291de3a2a9198f9b9fdb0a1d7d10ccb7b4a06/runtime.js#L7