Created
October 3, 2012 18:39
-
-
Save tlehman/3828901 to your computer and use it in GitHub Desktop.
staging for GS in bash
This file contains hidden or 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
| # a 'revision' is a branch, commit or tag | |
| stage() { | |
| CWD=`pwd` | |
| DIR=${CWD##*/} | |
| if [ "$*" == "" ]; then | |
| echo "We need a revision to deploy. E.g. master" | |
| return 1 | |
| fi | |
| if [[ $DIR == "goldstar" ]] ; then | |
| i cap rails3_staging deploy:migrations -s revision=$1 | |
| fi | |
| if [[ $DIR == "fulfillment" ]] ; then | |
| i cap staging deploy:migrations -s revision=$1 | |
| fi | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment