codebase4 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/codebase/recipes.rb +10 -2
- metadata +17 -8
data/lib/codebase/recipes.rb
CHANGED
@@ -13,9 +13,17 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
13
13
|
|
14
14
|
cmd = ["cb deploy #{previous_revision} #{current_revision}"]
|
15
15
|
|
16
|
+
branch = respond_to?(:branch) ? branch : 'master'
|
17
|
+
|
18
|
+
if respond_to?(:environment)
|
19
|
+
environment = environment
|
20
|
+
elsif respond_to(:rails_env)
|
21
|
+
environment = rails_env
|
22
|
+
end
|
23
|
+
|
16
24
|
cmd << "-s #{roles.values.collect{|r| r.servers}.flatten.collect{|s| s.host}.uniq.join(',') rescue ''}"
|
17
|
-
cmd << "-b #{
|
18
|
-
|
25
|
+
cmd << "-b #{branch}"
|
26
|
+
cmd << "-e #{environment}" if respond_to?(:environment)
|
19
27
|
|
20
28
|
## get the repo and project name etc...
|
21
29
|
if fetch(:repository) =~ /git\@codebasehq.com\:(.+)\/(.+)\/(.+)\.git\z/
|
metadata
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codebase4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 9
|
9
|
+
version: 1.0.9
|
6
10
|
platform: ruby
|
7
11
|
authors:
|
8
12
|
- Adam Cooke
|
@@ -10,17 +14,20 @@ autorequire:
|
|
10
14
|
bindir: bin
|
11
15
|
cert_chain: []
|
12
16
|
|
13
|
-
date: 2011-
|
17
|
+
date: 2011-08-23 00:00:00 +01:00
|
14
18
|
default_executable:
|
15
19
|
dependencies:
|
16
20
|
- !ruby/object:Gem::Dependency
|
17
21
|
name: json
|
18
22
|
prerelease: false
|
19
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
-
none: false
|
21
24
|
requirements:
|
22
25
|
- - ">="
|
23
26
|
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 1
|
30
|
+
- 5
|
24
31
|
version: 1.1.5
|
25
32
|
type: :runtime
|
26
33
|
version_requirements: *id001
|
@@ -40,7 +47,7 @@ files:
|
|
40
47
|
- lib/codebase/config.rb
|
41
48
|
- lib/codebase/recipes.rb
|
42
49
|
- lib/codebase.rb
|
43
|
-
has_rdoc:
|
50
|
+
has_rdoc: false
|
44
51
|
homepage: http://atechmedia.com
|
45
52
|
licenses: []
|
46
53
|
|
@@ -50,21 +57,23 @@ rdoc_options: []
|
|
50
57
|
require_paths:
|
51
58
|
- lib
|
52
59
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
60
|
requirements:
|
55
61
|
- - ">="
|
56
62
|
- !ruby/object:Gem::Version
|
63
|
+
segments:
|
64
|
+
- 0
|
57
65
|
version: "0"
|
58
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
67
|
requirements:
|
61
68
|
- - ">="
|
62
69
|
- !ruby/object:Gem::Version
|
70
|
+
segments:
|
71
|
+
- 0
|
63
72
|
version: "0"
|
64
73
|
requirements: []
|
65
74
|
|
66
75
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.
|
76
|
+
rubygems_version: 1.3.6
|
68
77
|
signing_key:
|
69
78
|
specification_version: 3
|
70
79
|
summary: The RubyGem for Codebase v4 Deployment Tracking (replaces previous codebase gems)
|