make proxy port listing a callable function

This commit is contained in:
Michael Hobbs committed 2016-06-16 16:04:44 -07:00
1 parent 2b19881f01
commit 21d0859253
3 files changed
+22 -13

No files matched your search

+2 -1
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_CORE_AVAILABLE_PATH/proxy/functions"
source "$PLUGIN_AVAILABLE_PATH/config/functions"
proxy_ports_remove_cmd() {
@@ -26,7 +27,7 @@ proxy_ports_remove_cmd() {
plugn trigger post-proxy-ports-update "$APP" "remove"
else
dokku_log_warn "No port mapping specified. Please supply a valid configured host port"
dokku proxy:ports "$APP"
list_app_proxy_ports "$APP"
dokku_log_fail "exiting..."
fi
}