rename log functions with dokku_log_ prefix

This commit is contained in:
Michael Hobbs
2015-02-06 08:28:14 -08:00
parent 371ba99540
commit 9164740117
9 changed files with 45 additions and 45 deletions

View File

@@ -4,13 +4,13 @@ source "$(dirname $0)/../common/functions"
case "$1" in
apps)
info2 "My Apps"
dokku_log_info2_quiet "My Apps"
find $DOKKU_ROOT -follow -maxdepth 1 -type d \( ! -iname ".*" \) -not -path $DOKKU_ROOT/tls | sed 's|^\./||g' | sed 's|'$DOKKU_ROOT'\/||' | tail -n +2 | sort
;;
apps:create)
[[ -z $2 ]] && echo "Please specify an app to run the command on" && exit 1
[[ -d "$DOKKU_ROOT/$2" ]] && warn "Name is already taken" && exit 1
[[ -d "$DOKKU_ROOT/$2" ]] && dokku_log_warn "Name is already taken" && exit 1
APP="$2"
mkdir -p "$DOKKU_ROOT/$APP"
@@ -25,14 +25,14 @@ case "$1" in
[[ "$3" == "force" ]] && DOKKU_APPS_FORCE_DELETE=1
if [[ -z "$DOKKU_APPS_FORCE_DELETE" ]]; then
warn "WARNING: Potentially Destructive Action"
warn "This command will destroy $APP (including all add-ons)."
warn "To proceed, type \"$APP\""
dokku_log_warn "WARNING: Potentially Destructive Action"
dokku_log_warn "This command will destroy $APP (including all add-ons)."
dokku_log_warn "To proceed, type \"$APP\""
echo ""
read -p "> " app_name
if [[ "$app_name" != "$APP" ]]; then
warn "Confirmation did not match $APP. Aborted."
dokku_log_warn "Confirmation did not match $APP. Aborted."
exit 1
fi
fi