refactor: deprecate nginx:validate
The command function move was to fix circular import issues...
This commit is contained in:
1 parent
579d430303
commit
94357b961e
11 files changed
+134
-116
No files matched your search
@@ -2,15 +2,6 @@
|
||||
set -eo pipefail
|
||||
[[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/command-functions"
|
||||
|
||||
cmd-nginx-validate() {
|
||||
declare desc="validates and optionally cleans up invalid nginx configurations"
|
||||
declare cmd="nginx:validate"
|
||||
[[ "$1" == "$cmd" ]] && shift 1
|
||||
declare APP="$1" FLAG="$2"
|
||||
|
||||
validate_nginx "$APP" "$FLAG"
|
||||
}
|
||||
|
||||
cmd-nginx-validate "$@"
|
||||
cmd-nginx-validate-config "$@"
|
||||
Reference in new issue
Block a user