Skip to content

Instantly share code, notes, and snippets.

@mkempe
Created October 11, 2012 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkempe/3871966 to your computer and use it in GitHub Desktop.
Save mkempe/3871966 to your computer and use it in GitHub Desktop.
Capistrano: Deploy tag
set :branch do
default_tag = `git tag`.split("\n").last
tag = Capistrano::CLI.ui.ask "Tag to deploy [#{default_tag}]: "
tag = default_tag if tag.empty?
tag
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment