capistrano-deploy-tagger 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/capistrano/deploy/tagger.rb +10 -3
  2. metadata +5 -7
@@ -21,6 +21,8 @@ Capistrano::Configuration.instance(:must_exist).load do
21
21
  # keep_deploy_tags = fetch(:keep_deploy_tags) rescue 10
22
22
  current_branch = fetch(:branch)
23
23
 
24
+ is_automatic_deploy = fetch(:is_automatic_deploy) rescue false
25
+
24
26
  if update_tag
25
27
 
26
28
  user = git("config --get user.name", {:output => true})
@@ -61,8 +63,12 @@ Capistrano::Configuration.instance(:must_exist).load do
61
63
 
62
64
  else
63
65
 
64
- puts "[Capistrano-Deploy-Tagger] Not updating deployment Git tags..."
65
- puts "To enable this behaviour, add the following to your deploy.rb: 'set :update_deploy_tags, true'."
66
+ if is_automatic_deploy
67
+ puts "[Capistrano-Deploy-Tagger] Automatic deployment - not updating deployment Git tags..."
68
+ else
69
+ puts "[Capistrano-Deploy-Tagger] Not updating deployment Git tags..."
70
+ puts "To enable this behaviour, add the following to your deploy.rb: 'set :update_deploy_tags, true'."
71
+ end
66
72
 
67
73
  end
68
74
 
@@ -72,11 +78,12 @@ Capistrano::Configuration.instance(:must_exist).load do
72
78
 
73
79
  task :automatic do
74
80
  # The EC2 autoscale self deploy tool calls 'bundle exec cap automatic deploy' to trigger this.
75
- # We set 'update_selfdeploy_tag' to false so the selfdeploy_tag isn't altered during autoscaling.
81
+ # We set 'update_deploy_tags' to false so the 'latest_deploy_tag' tag isn't altered during autoscaling.
76
82
  # We also override the branch to deploy from to be the selfdeploy_tag.
77
83
 
78
84
  set :deploy_via, :export # Git + capistrano don't like switching to a tag from master
79
85
  set :update_deploy_tags, false
86
+ set :is_automatic_deploy, true
80
87
 
81
88
  tag_name = fetch(:latest_deploy_tag) rescue "inproduction"
82
89
  set :branch, tag_name
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-deploy-tagger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 2
10
- version: 2.0.2
9
+ - 3
10
+ version: 2.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Conway
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-08-02 00:00:00 +01:00
19
- default_executable:
18
+ date: 2012-09-05 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: capistrano
@@ -45,7 +44,6 @@ extra_rdoc_files: []
45
44
 
46
45
  files:
47
46
  - lib/capistrano/deploy/tagger.rb
48
- has_rdoc: true
49
47
  homepage: http://github.com/forward/capistrano-deploy-tagger
50
48
  licenses: []
51
49
 
@@ -75,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  requirements: []
76
74
 
77
75
  rubyforge_project: capistrano-deploy-tagger
78
- rubygems_version: 1.6.2
76
+ rubygems_version: 1.8.15
79
77
  signing_key:
80
78
  specification_version: 3
81
79
  summary: Capistrano-Deploy-Tagger creates and updates certain tags in Git each time you perform a deploy.