use declare for description variable
This commit is contained in:
@@ -4,7 +4,7 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/apps/functions"
|
||||
|
||||
git_build_app_repo() {
|
||||
local desc="builds local git app repo for app"
|
||||
declare desc="builds local git app repo for app"
|
||||
verify_app_name "$1"
|
||||
local APP="$1"; local REV="$2"
|
||||
|
||||
@@ -42,7 +42,7 @@ git_build_app_repo() {
|
||||
}
|
||||
|
||||
git_hook_cmd() {
|
||||
local desc="kick off receive-app trigger from git prereceive hook"
|
||||
declare desc="kick off receive-app trigger from git prereceive hook"
|
||||
local cmd="git-hook"
|
||||
local APP="$2"
|
||||
|
||||
@@ -67,7 +67,7 @@ git_hook_cmd() {
|
||||
}
|
||||
|
||||
git_upload_pack_cmd() {
|
||||
local desc="executes git-upload-pack"
|
||||
declare desc="executes git-upload-pack"
|
||||
local cmd="git-upload-pack"
|
||||
local APP="$(echo "$2" | perl -pe 's/(?<!\\)'\''//g' | sed 's/\\'\''/'\''/g')"
|
||||
plugn trigger git-pre-pull "$APP"
|
||||
@@ -76,7 +76,7 @@ git_upload_pack_cmd() {
|
||||
}
|
||||
|
||||
git_build_cmd() {
|
||||
local desc="lock git-build"
|
||||
declare desc="lock git-build"
|
||||
local cmd="git-build"
|
||||
local APP="$2"; local APP_BUILD_LOCK="$DOKKU_ROOT/$APP/.build.lock"
|
||||
local APP_BUILD_LOCK_MSG="$APP is currently being deployed or locked. Waiting..."
|
||||
@@ -87,7 +87,7 @@ git_build_cmd() {
|
||||
}
|
||||
|
||||
git_build_locked_cmd() {
|
||||
local desc="setup and call git_build_app_repo"
|
||||
declare desc="setup and call git_build_app_repo"
|
||||
local cmd="git-build-locked"
|
||||
local APP="$2"
|
||||
if [[ $# -ge 3 ]]; then
|
||||
@@ -100,7 +100,7 @@ git_build_locked_cmd() {
|
||||
}
|
||||
|
||||
git_glob_cmd() {
|
||||
local desc="catch-all for any other git-* commands"
|
||||
declare desc="catch-all for any other git-* commands"
|
||||
local cmd="git-*"
|
||||
local APP="$(echo "$2" | perl -pe 's/(?<!\\)'\''//g' | sed 's/\\'\''/'\''/g' | sed 's/^\///g')"
|
||||
local APP_PATH=$DOKKU_ROOT/$APP
|
||||
|
||||
@@ -3,7 +3,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
|
||||
git_receive_app(){
|
||||
local desc="git receive-app plugin trigger"
|
||||
declare desc="git receive-app plugin trigger"
|
||||
local trigger="git_receive_app"
|
||||
local APP="$1"; local REV="$2"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user