2022-04-16 01:29:10 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
|
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
|
|
|
|
|
set -eo pipefail
|
|
|
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
|
|
2022-04-17 02:08:48 -04:00
|
|
|
fn-builder-lambda-computed-lambdayml-path() {
|
|
|
|
|
declare APP="$1"
|
|
|
|
|
|
|
|
|
|
file="$(fn-builder-lambda-lambdayml-path "$APP")"
|
|
|
|
|
if [[ "$file" == "" ]]; then
|
|
|
|
|
file="$(fn-builder-lambda-global-lambdayml-path "$APP")"
|
|
|
|
|
fi
|
2026-05-13 16:39:38 -04:00
|
|
|
if [[ "$file" == "" ]]; then
|
|
|
|
|
file="lambda.yml"
|
|
|
|
|
fi
|
2022-04-17 02:08:48 -04:00
|
|
|
|
|
|
|
|
echo "$file"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn-builder-lambda-global-lambdayml-path() {
|
|
|
|
|
declare APP="$1"
|
|
|
|
|
|
2026-05-13 16:39:38 -04:00
|
|
|
fn-plugin-property-get-default "builder-lambda" "--global" "lambdayml-path" ""
|
2022-04-17 02:08:48 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn-builder-lambda-lambdayml-path() {
|
2022-04-16 01:29:10 -04:00
|
|
|
declare APP="$1"
|
|
|
|
|
|
2022-11-24 14:47:13 -05:00
|
|
|
fn-plugin-property-get-default "builder-lambda" "$APP" "lambdayml-path" ""
|
2022-04-16 01:29:10 -04:00
|
|
|
}
|