Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
#44: Added capistrano target to deploy a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal de Vink committed May 7, 2013
1 parent 50d267d commit a679c22
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion app/config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,23 @@
# logger.level = Logger::MAX_LEVEL

default_run_options[:pty] = true
set :use_sudo, false
set :use_sudo, false

# Deploy from tags
namespace :deploy do

desc "Deply to a tag"

This comment has been minimized.

Copy link
@rdohms

rdohms May 8, 2013

Member

typo

task :tag do
transaction do
set :branch do
default_tag = `git tag`.split("\n").last

tag = Capistrano::CLI.ui.ask "Tag to deploy (make sure to push the tag first): [#{default_tag}] "
tag = default_tag if tag.empty?
tag
end unless exists?(:branch)

find_and_execute_task("deploy")
end
end
end

0 comments on commit a679c22

Please sign in to comment.