mirror of
https://github.com/dokku/dokku.git
synced 2025-12-25 16:29:30 +01:00
This is useful in cases where the command output must be tested, but it is otherwise embedded in a specific part of the dokku core. As the 'plugin' commands require root, this is safe to add to the core.
14 lines
252 B
Bash
Executable File
14 lines
252 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
|
|
plugin_trigger_cmd() {
|
|
declare desc="trigger an arbitrary plugin hook"
|
|
local cmd="plugin:trigger"
|
|
[[ "$1" == "$cmd" ]] && shift 1
|
|
|
|
plugn trigger "$@"
|
|
}
|
|
|
|
plugin_trigger_cmd "$@"
|