capistrano-deploytags 0.5.1 → 0.5.2
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.
- data/README.md +6 -0
- data/lib/capistrano/deploy_tags.rb +1 -1
- metadata +6 -6
data/README.md
CHANGED
@@ -29,6 +29,12 @@ probably a thousand other things I haven't thought of.
|
|
29
29
|
|
30
30
|
Usage
|
31
31
|
-----
|
32
|
+
capistrano-deploytags is available on
|
33
|
+
[rubygems.org](https://rubygems.org/gems/capistrano-deploytags).
|
34
|
+
You can install it from there with:
|
35
|
+
|
36
|
+
`gem install capistrano-deploytags`
|
37
|
+
|
32
38
|
If you use Bundler, be sure to add the gem to your Gemfile.
|
33
39
|
In your Capistrano `config/deploy.rb` you should add:
|
34
40
|
|
@@ -64,7 +64,7 @@ module Capistrano
|
|
64
64
|
cdt.safe_run "git", "tag", "-a", cdt.git_tag_for(stage), "-m", "#{tag_user} deployed #{current_sha} to #{stage}"
|
65
65
|
if cdt.git_tag?(cdt.last_git_tag_for(stage))
|
66
66
|
cdt.safe_run "git", "tag", "-d", cdt.last_git_tag_for(stage)
|
67
|
-
cdt.safe_run "git", "push", "
|
67
|
+
cdt.safe_run "git", "push", "origin", ":refs/tags/#{cdt.last_git_tag_for(stage)}" if cdt.has_remote?
|
68
68
|
end
|
69
69
|
|
70
70
|
cdt.safe_run "git", "tag", "-a", cdt.last_git_tag_for(stage), "-m", "#{tag_user} deployed #{current_sha} to #{stage}"
|
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.
|
4
|
+
version: 0.5.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &70207713757320 !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: *
|
24
|
+
version_requirements: *70207713757320
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: capistrano-ext
|
27
|
-
requirement: &
|
27
|
+
requirement: &70207713756880 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,8 +32,8 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
36
|
-
description: ! ' Capistrano Deploytags is a simple plugin to
|
35
|
+
version_requirements: *70207713756880
|
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,
|
39
39
|
and will move the *-latest tag to the latest commit. This lets you easily see which
|