(update: now available as a gem for capistrano)
Today at work we were discussing branching and tagging etc. to keep track of the currently deployed release on various servers. We’re working with Capistrano to do deploys.
This is a script I came up with:
Edit: refactored some errors out of it