Class LambdaUtil
java.lang.Object
io.quarkus.amazon.lambda.deployment.LambdaUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringartifactToLambda(String basename) Strips period, dash, and numbers.protected static StringconvertToken(String basename, String token) static StringcopyResource(String resource) static voidgenerateScripts(String handler, OutputTargetBuildItem target) static voidwriteExecutableFile(OutputTargetBuildItem target, String name, String output) static voidwriteFile(OutputTargetBuildItem target, String name, String output)
-
Constructor Details
-
LambdaUtil
public LambdaUtil()
-
-
Method Details
-
artifactToLambda
Strips period, dash, and numbers. Turns characters after to uppercase. i.e. Also strips "-SNAPSHOT" from end of name. "foo.bar-1.0-SNAPSHOT" to "FooBar"- Parameters:
basename-- Returns:
-
convertToken
-
writeFile
public static void writeFile(OutputTargetBuildItem target, String name, String output) throws IOException - Throws:
IOException
-
writeExecutableFile
public static void writeExecutableFile(OutputTargetBuildItem target, String name, String output) throws IOException - Throws:
IOException
-
copyResource
- Throws:
Exception
-
generateScripts
- Throws:
Exception
-