Capistrano tagging
Automagically tag your current deployed release with capistrano
Install
gem install capistrano-tagging
Usage
in deploy.rb:
require 'capistrano/tagging'
set :tag_format, ':rails_env_:release' # by default, also available all of deploy variables