chore: remove deprecated nginx commands

This commit is contained in:
Jose Diaz-Gonzalez
2023-02-12 13:12:47 -05:00
parent 577aafb683
commit 59fde3a317
2 changed files with 5 additions and 12 deletions

View File

@@ -15,10 +15,13 @@
- `apps#apps_destroy()` is removed in favor of `plugn trigger app-destroy`.
- `apps#apps_exists()` is removed in favor of `plugn trigger app-exists`.
- `apps#apps_maybe_create()` is removed in favor of `plugn trigger app-maybe-create`.
- The following common shell functions have been removed.
- The following common shell functions have been removed:
- `common#is_container_running()` (deprecated since 0.12.6) is removed in favor of `common#is_container_status()`.
- `common#is_app_running()` (deprecated since 0.22.0) is removed in favor of `ps#fn-ps-is-app-running()`.
- The global `--rm-container` and `--rm` flags - deprecated since 0.25.0 - have been removed.
- The following git shell functions hve been removed.
- The following git shell functions have been removed:
- `git#use_git_worktree()` (deprecated since 0.23.7) has been removed. There is no alternative as the function has been made internal.
- `git#git_deploy_branch()`(deprecated since 0.21.0) has been removed in favor of `plugn trigger git-deploy-branch`.
- The following deprecated nginx commands have been removed:
- `nginx:show-conf` (deprecated since since 0.20.0) has been removed in favor of `nginx:show-config`
- `nginx:validate` (deprecated since since 0.20.0) has been removed in favor of `nginx:validate-config`

View File

@@ -94,12 +94,7 @@ cmd-nginx-report-single() {
cmd-nginx-show-config() {
declare desc="display app nginx config"
declare cmd="nginx:show-config"
declare deprecated=true
[[ "$1" == "$cmd" ]] && shift 1
if [[ "$1" == "nginx:show-conf" ]]; then
dokku_log_warn "Deprecated: Please use nginx:show-config"
shift 1
fi
declare APP="$1"
verify_app_name "$APP"
@@ -133,12 +128,7 @@ cmd-nginx-stop() {
cmd-nginx-validate-config() {
declare desc="validates and optionally cleans up invalid nginx configurations"
declare cmd="nginx:validate-config"
declare deprecated=true
[[ "$1" == "$cmd" ]] && shift 1
if [[ "$1" == "nginx:validate" ]]; then
dokku_log_warn "Deprecated: Please use nginx:validate-config"
shift 1
fi
declare APP="$1" FLAG="$2"
validate_nginx "$APP" "$FLAG"