refactor: standardize trigger code
This commit is contained in:
1 parent
4a60497d3e
commit
7357579af2
63 files changed
+382
-329
No files matched your search
@@ -5,16 +5,16 @@ source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/nginx-vhosts/functions"
|
||||
source "$PLUGIN_AVAILABLE_PATH/proxy/functions"
|
||||
|
||||
nginx_proxy_build_config() {
|
||||
trigger-nginx-vhosts-proxy-build-config() {
|
||||
declare desc="build nginx config to proxy app containers from command line"
|
||||
declare trigger="nginx_proxy_build_config"
|
||||
declare trigger="proxy-build-config"
|
||||
declare APP="$1"
|
||||
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||
|
||||
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
|
||||
if [[ "$(get_app_proxy_type "$APP")" == "nginx" ]]; then
|
||||
plugn trigger network-build-config "$APP"
|
||||
nginx_build_config "$APP"
|
||||
fi
|
||||
}
|
||||
|
||||
nginx_proxy_build_config "$@"
|
||||
trigger-nginx-vhosts-proxy-build-config "$@"
|
||||
Reference in new issue
Block a user