Skip to content

Instantly share code, notes, and snippets.

@proffalken
Created April 28, 2011 15:54
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 proffalken/946622 to your computer and use it in GitHub Desktop.
Save proffalken/946622 to your computer and use it in GitHub Desktop.
set :repository_root, "#{scm_uri}/#{application}"
set(:release) {
Capistrano::CLI.ui.ask("Release Version to deploy (or type 'trunk' to deploy from trunk): ")
}
set(:repository) {
(release == "trunk") ? "#{repository_root}/trunk" : "#{repository_root}/releases/Release-#{release}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment