crazycode-cap-recipes 0.4.8 → 0.4.9
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/VERSION.yml +1 -1
- data/crazycode-cap-recipes.gemspec +2 -2
- data/lib/cap_recipes/tasks/gitdeploy/setup.rb +4 -4
- metadata +3 -3
data/VERSION.yml
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{crazycode-cap-recipes}
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.9"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["crazycode"]
|
|
12
|
-
s.date = %q{2011-08-
|
|
12
|
+
s.date = %q{2011-08-29}
|
|
13
13
|
s.default_executable = %q{cap-recipes}
|
|
14
14
|
s.description = %q{Battle-tested capistrano recipes for debian, passenger, apache, hudson, delayed_job, juggernaut, rubygems, backgroundrb, rails and more}
|
|
15
15
|
s.email = %q{crazycode@gmail.com}
|
|
@@ -55,9 +55,9 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
|
55
55
|
task :tag do
|
|
56
56
|
gitdeploy.setup_local
|
|
57
57
|
|
|
58
|
-
tag_name = configuration[:tag]
|
|
58
|
+
tag_name = configuration[:tag] || configuration[:build_version]
|
|
59
59
|
if tag_name.nil?
|
|
60
|
-
|
|
60
|
+
raise "NO tag. pls use -s tag=xxx set tag_name"
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
if war_config.nil? or war_config.size == 0
|
|
@@ -93,9 +93,9 @@ Capistrano::Configuration.instance(true).load do |configuration|
|
|
|
93
93
|
|
|
94
94
|
desc "deploy tagged version. use -s tag=xxx to set tag's name"
|
|
95
95
|
task :deploy do
|
|
96
|
-
tag_name = configuration[:tag]
|
|
96
|
+
tag_name = configuration[:tag] || configuration[:build_version]
|
|
97
97
|
if tag_name.nil?
|
|
98
|
-
|
|
98
|
+
raise "NO tag. pls use -s tag=xxx set tag_name"
|
|
99
99
|
end
|
|
100
100
|
|
|
101
101
|
run update_repository_remote_command(tag_name)
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 4
|
|
8
|
-
-
|
|
9
|
-
version: 0.4.
|
|
8
|
+
- 9
|
|
9
|
+
version: 0.4.9
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- crazycode
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2011-08-
|
|
17
|
+
date: 2011-08-29 00:00:00 +08:00
|
|
18
18
|
default_executable: cap-recipes
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|