Skip to content

Instantly share code, notes, and snippets.

@jpemberthy
Created July 18, 2013 19:45
Show Gist options
  • Save jpemberthy/6032406 to your computer and use it in GitHub Desktop.
Save jpemberthy/6032406 to your computer and use it in GitHub Desktop.
function staging_deploy {
current_branch=`git branch | grep \* | awk '{print $2}'`
if [ $# -gt 0 ]; then # we have args
staging=$1
else
staging="staging"
fi
bundle exec cap -s branch=$current_branch $staging deploy
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment