capistrano-gitflow 1.3.5 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.5
1
+ 1.4.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano-gitflow}
8
- s.version = "1.3.5"
8
+ s.version = "1.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joshua Nichols"]
12
- s.date = %q{2010-06-28}
12
+ s.date = %q{2010-07-16}
13
13
  s.description = %q{Capistrano recipe for a deployment workflow based on git tags}
14
14
  s.email = %q{josh@technicalpickles.com}
15
15
  s.extra_rdoc_files = [
@@ -135,10 +135,10 @@ Please make sure you have pulled and pushed all code before deploying:
135
135
 
136
136
  desc "Push the approved tag to production. Pass in tag to deploy with '-s tag=staging-YYYY-MM-DD-X-feature'."
137
137
  task :tag_production do
138
- promote_to_production_tag = capistrano_configuration[:tag]
138
+ promote_to_production_tag = capistrano_configuration[:tag] || last_staging_tag
139
139
 
140
140
  unless promote_to_production_tag && promote_to_production_tag =~ /staging-.*/
141
- abort "Staging tag required; use '-s tag=staging-YYYY-MM-DD.X'"
141
+ abort "Couldn't find a staging tag to deploy; use '-s tag=staging-YYYY-MM-DD.X'"
142
142
  end
143
143
  unless last_tag_matching(promote_to_production_tag)
144
144
  abort "Staging tag #{promote_to_production_tag} does not exist."
@@ -146,6 +146,13 @@ Please make sure you have pulled and pushed all code before deploying:
146
146
 
147
147
  promote_to_production_tag =~ /^staging-(.*)$/
148
148
  new_production_tag = "production-#{$1}"
149
+ puts "Preparing to promote staging tag #{promote_to_production_tag} to production as #{new_production_tag}'"
150
+ unless capistrano_configuration[:tag]
151
+ really_deploy = Capistrano::CLI.ui.ask("Do you really want to deploy #{new_production_tag}? [y/N]").to_url
152
+ unless really_deploy =~ /^[Yy]$/
153
+ exit(1)
154
+ end
155
+ end
149
156
  puts "promoting staging tag #{promote_to_production_tag} to production as '#{new_production_tag}'"
150
157
  system "git tag -a -m 'tagging current code for deployment to production' #{new_production_tag} #{promote_to_production_tag}"
151
158
 
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 1
7
- - 3
8
- - 5
9
- version: 1.3.5
7
+ - 4
8
+ - 0
9
+ version: 1.4.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Nichols
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-28 00:00:00 -04:00
17
+ date: 2010-07-16 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency