refactor: rename to deploy-source

This commit is contained in:
Jose Diaz-Gonzalez
2018-03-03 19:11:49 -05:00
parent 726c1571eb
commit 9a1dd41e9f
4 changed files with 14 additions and 14 deletions

View File

@@ -1,14 +1,14 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
git_deploy_method() {
declare desc="git deploy-method plugin trigger"
declare trigger="git_deploy_method"
git_deploy_source() {
declare desc="git deploy-source plugin trigger"
declare trigger="git_deploy_source"
declare APP="$1"
local STDIN
STDIN=$(cat)
# bail if another method is detected
# bail if another source is detected
if [[ -n "$STDIN" ]]; then
echo "$STDIN"
return
@@ -19,4 +19,4 @@ git_deploy_method() {
fi
}
git_deploy_method "$@"
git_deploy_source "$@"