chore: remove deprecated app functions

These were deprecated in 0.20.0 and are unused in Dokku's official codebases.
This commit is contained in:
Jose Diaz-Gonzalez
2023-02-12 13:02:23 -05:00
parent 18c983d77a
commit 7f2a66df88
3 changed files with 5 additions and 42 deletions

View File

@@ -10,3 +10,8 @@
- `post-release-dockerfile`
- `post-release-pack`
- The ability to call `logs:failed` without specifying an app or `--all` flag has been removed. This was deprecated in 0.22.0. Please see the [logs:failed](/docs/deployment/logs.md#failed-deploy-logs).
- The following app shell functions - deprecated since 0.20.0 - have been removed in favor of their plugin trigger equivalents. Sourcing the `app/functions` file will fail going forward.
- `apps#apps_create()` is removed in favor of `plugn trigger app-create`.
- `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`.

View File

@@ -1,41 +0,0 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/config/functions"
apps_create() {
declare desc="verifies app name and creates an app"
declare APP="$1"
declare deprecated=true
dokku_log_warn "Deprecated: plugn#app-create"
plugn trigger app-create "$APP"
}
apps_destroy() {
declare desc="destroys an app"
declare APP="$1"
declare deprecated=true
dokku_log_warn "Deprecated: plugn#app-destroy"
plugn trigger app-destroy "$APP"
}
apps_exists() {
declare desc="checks if an app exists"
declare APP="$1"
declare deprecated=true
dokku_log_warn "Deprecated: plugn#app-exists"
plugn trigger app-exists "$APP"
}
apps_maybe_create() {
declare desc="creates an app dir if allowed"
declare APP="$1"
declare deprecated=true
dokku_log_warn "Deprecated: plugn#app-maybe-create"
plugn trigger app-maybe-create "$APP"
}

View File

@@ -1,7 +1,6 @@
#!/usr/bin/env bash
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_CORE_AVAILABLE_PATH/common/property-functions"
source "$PLUGIN_AVAILABLE_PATH/apps/functions"
source "$PLUGIN_AVAILABLE_PATH/config/functions"
source "$PLUGIN_AVAILABLE_PATH/git/internal-functions"
set -eo pipefail