Files
dokku/plugins/git/git-get-property
2022-12-18 17:49:47 -05:00

20 lines
419 B
Bash
Executable File

#!/usr/bin/env bash
set -eo pipefail
source "$PLUGIN_AVAILABLE_PATH/git/internal-functions"
[[ $DOKKU_TRACE ]] && set -x
trigger-git-git-get-property() {
declare desc="return the value for an app's git property"
declare trigger="git-get-property"
declare APP="$1" KEY="$2"
if [[ "$KEY" == "source-image" ]]; then
fn-git-source-image "$APP"
return
fi
return 1
}
trigger-git-git-get-property "$@"