refactor: unify command declaration across codebase

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-02-10 01:40:30 -05:00
1 parent b0abeb49dd
commit e67b96780d
108 files changed
+475 -315

No files matched your search

+4 -3
View File
@@ -6,10 +6,11 @@ source "$PLUGIN_AVAILABLE_PATH/config/functions"
cmd-proxy-ports-clear() {
declare desc="clear all proxy port mappings for an app"
local cmd="proxy:clear"
local APP="$2"
verify_app_name "$APP"
declare cmd="proxy:clear"
[[ "$1" == "$cmd" ]] && shift 1
declare APP="$1"
verify_app_name "$APP"
DOKKU_QUIET_OUTPUT=1 config_unset --no-restart "$APP" DOKKU_PROXY_PORT_MAP
plugn trigger post-proxy-ports-update "$APP" "clear"
}