capistrano-deploy-tagger 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/capistrano/deploy/tagger.rb +9 -7
  2. metadata +4 -4
@@ -31,7 +31,7 @@ Capistrano::Configuration.instance(:must_exist).load do
31
31
  user = git("config --get user.name", {:output => true})
32
32
  email = git("config --get user.email", {:output => true})
33
33
 
34
- puts "[Capistrano-Deploy-Tagger] Updating deployment Git tags...\n\n"
34
+ puts "[Capistrano-Deploy-Tagger] Updating deployment Git tags...\n"
35
35
 
36
36
  git "fetch --tags", {:output => true}
37
37
 
@@ -58,14 +58,16 @@ Capistrano::Configuration.instance(:must_exist).load do
58
58
  end
59
59
 
60
60
  # Remove an existing 'latest_deploy_tag' tag, then recreate it at the current revision.
61
- if git("tag -l #{tag_name}", {:output => true}) == tag_name
62
- git "tag -d #{tag_name}", {:output => true}
63
- git "push origin :#{tag_name}", {:output => true}
64
- end
65
- git "tag #{tag_name} #{revision} -m \"Latest deploy tag updated by #{user} <#{email}>.\"", {:output => true}
66
-
61
+ # if git("tag -l #{tag_name}", {:output => true}) == tag_name
62
+ # git "tag -d #{tag_name}", {:output => true}
63
+ # git "push origin :#{tag_name}", {:output => true}
64
+ # end
65
+
66
+ # Trying to reduce the number of seperate requests out to Git to speed up the tagging step.
67
+ git "tag -f #{tag_name} #{revision} -m \"Latest deploy tag updated by #{user} <#{email}>.\"", {:output => true}
67
68
  git "push --tags", {:output => true}
68
69
 
70
+ puts "[Capistrano-Deploy-Tagger] Tagging complete."
69
71
  else
70
72
 
71
73
  if is_automatic_deploy
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: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
- - 1
8
+ - 2
9
9
  - 0
10
- version: 2.1.0
10
+ version: 2.2.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Conway
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-09-16 00:00:00 Z
18
+ date: 2013-09-17 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: capistrano