-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from covermymeds/cje_post_deploy
Add --post-deploy-script feature and minor bug fix
- Loading branch information
Showing
6 changed files
with
73 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version=1.4.2 | ||
version=1.5.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
function exec_post_deploy_script() { | ||
|
||
_script_to_exec="$1" | ||
|
||
# database name will automatically be passed to script with -d flag | ||
|
||
echo "Executing script post dbdeployer run: ${_script_to_exec} -d ${dbname} -n ${db_destination_name}" | ||
script_result=`$_script_to_exec -d $dbname -n ${db_destination_name}` | ||
|
||
if [ $? -ne 0 ] | ||
then | ||
echo "Failed to execute script: ${_script_to_exec}" | ||
rc=1 | ||
else | ||
rc=0 | ||
fi | ||
|
||
echo -e $script_result | ||
|
||
unset script_result | ||
unset _script_to_exec | ||
return $rc | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters