capistrano-deploytags 0.5.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  Capistrano Deployment Tags
2
2
  ==========================
3
- This plugin to Capistrano will add timestamped and latest Git tags
3
+ This plugin to Capistrano will add a timestamped Git tag
4
4
  at each deployment, automatically. It is intended to be used with
5
5
  the multistage recipe and will tag each release by environment.
6
6
  You can, however, use it without multistage simply by setting :branch
@@ -18,10 +18,6 @@ timestamp:
18
18
 
19
19
  `production-2012.04.02-203155`
20
20
 
21
- It would also result in moving or creating this tag:
22
-
23
- `production-latest`
24
-
25
21
  These tags can be used for any number of useful things including
26
22
  generating statistics about deployments per day/week/year, tracking
27
23
  code size over a period of time, detecting Rails migrations, and
@@ -9,10 +9,6 @@ module Capistrano
9
9
  "#{stage}-#{Time.now.strftime("%Y.%m.%d-%H%M%S")}"
10
10
  end
11
11
 
12
- def last_git_tag_for(stage)
13
- "#{stage}-latest"
14
- end
15
-
16
12
  def safe_run(*args)
17
13
  raise "#{args.join(" ")} failed!" unless system(*args)
18
14
  end
@@ -62,12 +58,7 @@ module Capistrano
62
58
 
63
59
  tag_user = (ENV['USER'] || ENV['USERNAME']).strip
64
60
  cdt.safe_run "git", "tag", "-a", cdt.git_tag_for(stage), "-m", "#{tag_user} deployed #{current_sha} to #{stage}"
65
- if cdt.git_tag?(cdt.last_git_tag_for(stage))
66
- cdt.safe_run "git", "tag", "-d", cdt.last_git_tag_for(stage)
67
- cdt.safe_run "git", "push", "origin", ":refs/tags/#{cdt.last_git_tag_for(stage)}" if cdt.has_remote?
68
- end
69
61
 
70
- cdt.safe_run "git", "tag", "-a", cdt.last_git_tag_for(stage), "-m", "#{tag_user} deployed #{current_sha} to #{stage}"
71
62
  cdt.safe_run "git", "push", "--tags" if cdt.has_remote?
72
63
  end
73
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-deploytags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-02 00:00:00.000000000 Z
12
+ date: 2012-05-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70207713757320 !ruby/object:Gem::Requirement
16
+ requirement: &2160135260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70207713757320
24
+ version_requirements: *2160135260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capistrano-ext
27
- requirement: &70207713756880 !ruby/object:Gem::Requirement
27
+ requirement: &2160134800 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70207713756880
35
+ version_requirements: *2160134800
36
36
  description: ! ' Capistrano Deploytags is a simple plugin to Capistrano that works
37
37
  with your deployment framework to track your code releases. All you have to do is
38
38
  require capistrano-deploytags and each deployment will add a new tag for that deployment,