From 0275c65b8a86f52da0d64e392e48d2071ce0f4fd Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 6 May 2019 11:18:56 -0400 Subject: [PATCH] feat: add support for quiet ps:scale output The previous output required too much parsing to be used in an automated fashion. This change makes that a bit easier, without sacrificing usability. Note that the output is quite a bit different from heroku. This is purposeful as we do not have the concept of dynos. Closes #3520 --- plugins/ps/functions | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/ps/functions b/plugins/ps/functions index 3b4270dff..2a8f0cde4 100755 --- a/plugins/ps/functions +++ b/plugins/ps/functions @@ -185,13 +185,13 @@ ps_scale() { [[ ! -e $DOKKU_SCALE_FILE ]] && generate_scale_file "$APP" "$IMAGE_TAG" if [[ -z "$@" ]]; then dokku_log_info1_quiet "Scaling for $APP" - dokku_col_log_info1_quiet "proctype" "qty" - dokku_col_log_info1_quiet "--------" "---" + dokku_col_log_msg_quiet "proctype" "qty" + dokku_col_log_msg_quiet "--------" "---" while read -r line || [[ -n "$line" ]]; do [[ -z "$line" ]] && continue local PROC_NAME=${line%%=*} local PROC_COUNT=${line#*=} - dokku_col_log_info1 "$PROC_NAME" "$PROC_COUNT" + dokku_col_log_msg "${PROC_NAME}:" "$PROC_COUNT" done <"$DOKKU_SCALE_FILE" else set_scale "$APP" "$@"