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:
1 parent
5458d5b341
commit
61a306664f
22 files changed
+226
-49
No files matched your search
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
source "$PLUGIN_AVAILABLE_PATH/domains/functions"
|
||||
set -eo pipefail
|
||||
[[ $DOKKU_TRACE ]] && set -x
|
||||
|
||||
trigger-domains-domains-add() {
|
||||
declare desc="adds a domain to an app"
|
||||
declare trigger="domains-add"
|
||||
declare APP="$1" DOMAIN="$2"
|
||||
|
||||
domains_add "$APP" "$DOMAIN"
|
||||
}
|
||||
|
||||
trigger-domains-domains-add "$@"
|
||||
Reference in new issue
Block a user