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

@@ -9,15 +9,15 @@ function has_tty() {
fi
}
function info1() {
function dokku_log_info1() {
echo "-----> $@"
}
function info2() {
function dokku_log_info2() {
echo "=====> $@"
}
function info1_quiet() {
function dokku_log_info1_quiet() {
if [[ -z "$DOKKU_QUIET_OUTPUT" ]];then
echo "-----> $@"
else
@@ -25,7 +25,7 @@ function info1_quiet() {
fi
}
function info2_quiet() {
function dokku_log_info2_quiet() {
if [[ -z "$DOKKU_QUIET_OUTPUT" ]];then
echo "=====> $@"
else
@@ -33,22 +33,22 @@ function info2_quiet() {
fi
}
function verbose() {
function dokku_log_verbose() {
echo " $@"
}
function warn() {
function dokku_log_warn() {
echo " ! $@"
}
function fail() {
function dokku_log_fail() {
echo "$@" 1>&2
exit 1
}
function verify_app_name() {
local APP="$1"
[[ ! -d "$DOKKU_ROOT/$APP" ]] && fail "App $APP does not exist"
[[ ! -d "$DOKKU_ROOT/$APP" ]] && dokku_log_fail "App $APP does not exist"
return 0
}