fix: Ensure we can call ps:report without specifying an application

Closes #2721
This commit is contained in:
Jose Diaz-Gonzalez
2017-04-21 00:57:40 -06:00
parent fb68a6f4b6
commit dea1c86a9b

View File

@@ -7,6 +7,11 @@ source "$PLUGIN_AVAILABLE_PATH/ps/functions"
report_single_app() {
declare APP="$1" INFO_FLAG="$2"
local APP_DIR="$DOKKU_ROOT/$APP"
local use_echo
if [[ "$INFO_FLAG" == "true" ]]; then
INFO_FLAG=""
fi
local passed_phases="deploy"
local APP_CIDS=$(get_app_container_ids "$APP"); local PROCS=0; local RUNNING=""