Skip to content

Instantly share code, notes, and snippets.

@tlehman
Created October 3, 2012 18:39
Show Gist options
  • Select an option

  • Save tlehman/3828901 to your computer and use it in GitHub Desktop.

Select an option

Save tlehman/3828901 to your computer and use it in GitHub Desktop.
staging for GS in bash
# 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