[ci skip] minor formatting changes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
||||
source "$PLUGIN_PATH/common/functions"
|
||||
|
||||
print_dokku_scale_file(){
|
||||
print_dokku_scale_file() {
|
||||
local APP="$1"; local DOKKU_SCALE_FILE="$DOKKU_ROOT/$APP/DOKKU_SCALE"
|
||||
while read line || [ -n "$line" ]
|
||||
do
|
||||
|
||||
@@ -5,17 +5,17 @@ SELF=$(which $0); APP="$1"; TARGET="$2"; FORWARDED_PORT="$3"; SHOULD_FAIL="$4"
|
||||
REMOTE="dokku@$TARGET"
|
||||
REPO="test-$(basename $APP)-$RANDOM"
|
||||
|
||||
destroy_app(){
|
||||
destroy_app() {
|
||||
echo $REPO | ssh $REMOTE apps:destroy $REPO
|
||||
}
|
||||
|
||||
failed(){
|
||||
failed() {
|
||||
echo "************ $1 failed ************"
|
||||
destroy_app
|
||||
exit 1
|
||||
}
|
||||
|
||||
succeeded(){
|
||||
succeeded() {
|
||||
echo "************ $1 succeeded but should have failed ************"
|
||||
destroy_app
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user