feat: call ps_rebuild from post-app-rename-setup

This commit is contained in:
Jose Diaz-Gonzalez
2020-02-17 06:10:26 -05:00
parent 77f9862549
commit 0740636d53
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eo pipefail
[[ $DOKKU_TRACE ]] && set -x
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
source "$PLUGIN_AVAILABLE_PATH/config/functions"
source "$PLUGIN_AVAILABLE_PATH/ps/functions"
trigger-ps-post-app-rename-setup() {
declare desc="ps post-app-rename-setup plugin trigger"
declare trigger="post-app-rename-setup"
declare OLD_APP="$1" NEW_APP="$2"
ps_rebuild "$NEW_APP"
}
trigger-ps-post-app-rename-setup "$@"