Skip to content

Instantly share code, notes, and snippets.

@igkuz
Created February 5, 2014 12:20
Show Gist options
  • Select an option

  • Save igkuz/8822519 to your computer and use it in GitHub Desktop.

Select an option

Save igkuz/8822519 to your computer and use it in GitHub Desktop.
set :branch do
tag = ENV['TAG'] || Capistrano::CLI.ui.ask("What tag do you want to deploy? ")
if tag.empty?
logger.important 'tag is emtpy, exiting'
exit
else
tag
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment