refactor: standardize trigger code

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-02-10 02:40:59 -05:00
1 parent 4a60497d3e
commit 7357579af2
63 files changed
+382 -329

No files matched your search

+4 -4
View File
@@ -4,12 +4,12 @@ set -eo pipefail
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/ps/functions"
ps_app_restart() {
trigger-ps-app-restart() {
declare desc="ps app-restart plugin trigger"
local trigger="ps_app_restart"
local APP="$1"
declare trigger="app-restart"
declare APP="$1"
ps_restart "$APP"
}
ps_app_restart "$@"
trigger-ps-app-restart "$@"