chore: remove all deprecated commands
This change removes all deprecated commands. In many cases, users have been warned for a number of releases before the commands have been removed. All commands that were removed have existing alternatives.
This commit is contained in:
@@ -27,7 +27,6 @@ help_desc
|
||||
fn-help-content() {
|
||||
declare desc="return help content"
|
||||
cat <<help_content
|
||||
checks <app>, [DEPRECATED] Alternative for checks:report
|
||||
checks:disable <app> [process-type(s)], Disable zero-downtime deployment for all processes (or comma-separated process-type list) ***WARNING: this will cause downtime during deployments***
|
||||
checks:enable <app> [process-type(s)], Enable zero-downtime deployment for all processes (or comma-separated process-type list)
|
||||
checks:report [<app>] [<flag>], Displays a checks report for one or more apps
|
||||
|
||||
@@ -1,31 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eo pipefail
|
||||
[[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/checks/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/checks/help-functions"
|
||||
|
||||
cmd-checks-default() {
|
||||
declare desc="displays app zero-downtime checks status"
|
||||
declare cmd="checks"
|
||||
[[ "$1" == "$cmd" ]] && shift 1
|
||||
declare APP="$1"
|
||||
|
||||
local APPS=$(dokku_apps)
|
||||
if [[ -n "$APP" ]]; then
|
||||
local APPS="$APP"
|
||||
fi
|
||||
|
||||
dokku_log_warn "Deprecated: Please use checks:report"
|
||||
dokku_col_log_info1_quiet "App Name" "Proctypes Disabled" "Proctypes Skipped"
|
||||
local app
|
||||
for app in $APPS; do
|
||||
verify_app_name "$app"
|
||||
local DOKKU_CHECKS_DISABLED=$(config_get "$app" DOKKU_CHECKS_DISABLED)
|
||||
local DOKKU_CHECKS_SKIPPED=$(config_get "$app" DOKKU_CHECKS_SKIPPED)
|
||||
local checks_disabled="${DOKKU_CHECKS_DISABLED:-none}"
|
||||
local checks_skipped="${DOKKU_CHECKS_SKIPPED:-none}"
|
||||
dokku_col_log_msg "$app" "$checks_disabled" "$checks_skipped"
|
||||
done
|
||||
}
|
||||
|
||||
cmd-checks-default "$@"
|
||||
cmd-checks-help "checks:help"
|
||||
|
||||
Reference in New Issue
Block a user