refactor: move domain manipulation into triggers

This allows other plugins to avoid understanding the underlying details of how domains might be integrated with.
This commit is contained in:
Jose Diaz-Gonzalez committed 2020-05-06 00:16:51 -04:00
1 parent 5458d5b341
commit 61a306664f
22 files changed
+226 -49

No files matched your search

+1 -2
View File
@@ -2,7 +2,6 @@
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/ps/functions"
cmd-ps-restart() {
declare desc="restarts app via command line"
@@ -11,7 +10,7 @@ cmd-ps-restart() {
declare APP="$1"
[[ -z "$APP" ]] && dokku_log_fail "Please specify an app to run the command on"
ps_restart "$APP"
plugn trigger app-restart "$APP"
}
cmd-ps-restart "$@"