tdd_deploy 0.1.10 → 0.1.11.pre2
Sign up to get free protection for your applications and to get access to all the features.
data/lib/tdd_deploy/capfile.rb
CHANGED
@@ -35,6 +35,10 @@ module TddDeploy
|
|
35
35
|
# for rails apps. May be called multiple times
|
36
36
|
def load_recipes(path = './config/deploy.rb')
|
37
37
|
@capfile_config.load path
|
38
|
+
rescue LoadError => e
|
39
|
+
msg = "Unable to load capistrano config file: #{path} - #{e}"
|
40
|
+
raise LoadError.new msg
|
38
41
|
end
|
42
|
+
|
39
43
|
end
|
40
44
|
end
|
@@ -79,6 +79,10 @@ end
|
|
79
79
|
font-weight: normal;
|
80
80
|
background: #800000;
|
81
81
|
}
|
82
|
+
.orange { background: #ff8000;}
|
83
|
+
|
84
|
+
smaller { font-size: small;}
|
85
|
+
bold { font-weight: bold;}
|
82
86
|
</style>
|
83
87
|
<!-- Date: 2011-08-20 -->
|
84
88
|
</head>
|
@@ -130,10 +134,20 @@ end
|
|
130
134
|
|
131
135
|
<h3>Capistrano Variables</h3>
|
132
136
|
<% if server_obj.app_hosts.sort != (server_obj.app + server_obj.migration_hosts).uniq.sort %>
|
133
|
-
<p
|
137
|
+
<p>
|
138
|
+
<span class="warn">Warning: 'app_hosts' does not match Capistrano 'app' and 'migration_hosts'</span>
|
139
|
+
</p>
|
140
|
+
<p>
|
141
|
+
<span class="orange smaller bold">(make sure the capistrano hosts are an array, not a single string in an array)</span>
|
142
|
+
</p>
|
134
143
|
<% end %>
|
135
144
|
<% if server_obj.db_hosts.uniq.sort != server_obj.db.uniq.sort %>
|
136
|
-
<p
|
145
|
+
<p>
|
146
|
+
<span class="warn">Warning: 'db_hosts' does not match Capistrano 'db'</span>
|
147
|
+
</p>
|
148
|
+
<p>
|
149
|
+
<span class="orange smaller bold">(make sure the capistrano hosts are an array, not a single string in an array)</span>
|
150
|
+
</p>
|
137
151
|
<% end %>
|
138
152
|
<table>
|
139
153
|
<% reset_even_odd %>
|
data/lib/tdd_deploy/version.rb
CHANGED
data/tests/test_server.rb
CHANGED
@@ -66,6 +66,10 @@ class TestServerTestCase < Test::Unit::TestCase
|
|
66
66
|
assert @tester.send(:run_selected_tests, ['return_true', 'smoke']), 'run_selected_tests can run two tests'
|
67
67
|
end
|
68
68
|
|
69
|
+
def test_capistrano_attributes
|
70
|
+
assert_equal ['app1', 'app2', 'app3'], @tester.app, "Capistrano app should be an array of three hosts"
|
71
|
+
end
|
72
|
+
|
69
73
|
def test_parse_query_string
|
70
74
|
qs = @tester.send :parse_query_string, "foo=bar&bar=some%20stuff"
|
71
75
|
assert_equal 2, qs.length, "query string should have to entries"
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdd_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.11.pre2
|
5
|
+
prerelease: 7
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Mike Howard
|
@@ -13,7 +13,7 @@ date: 2011-08-16 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &2160994180 !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: *2160994180
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: net-ping
|
27
|
-
requirement: &
|
27
|
+
requirement: &2160985180 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2160985180
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: net-ssh
|
38
|
-
requirement: &
|
38
|
+
requirement: &2160984700 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2160984700
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: rack
|
49
|
-
requirement: &
|
49
|
+
requirement: &2160984180 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ! '>='
|
@@ -54,10 +54,10 @@ dependencies:
|
|
54
54
|
version: '0'
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *2160984180
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: ZenTest
|
60
|
-
requirement: &
|
60
|
+
requirement: &2160983620 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ~>
|
@@ -65,10 +65,10 @@ dependencies:
|
|
65
65
|
version: 4.5.0
|
66
66
|
type: :development
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *2160983620
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: autotest-growl
|
71
|
-
requirement: &
|
71
|
+
requirement: &2160983160 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
74
|
- - ! '>='
|
@@ -76,7 +76,7 @@ dependencies:
|
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *2160983160
|
80
80
|
description: Test driven support for host provisioning & Capistrano deployment - for
|
81
81
|
those who don't want to bother learning too much
|
82
82
|
email: ! ' mike@clove.com '
|
@@ -166,9 +166,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
166
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
167
|
none: false
|
168
168
|
requirements:
|
169
|
-
- - ! '
|
169
|
+
- - ! '>'
|
170
170
|
- !ruby/object:Gem::Version
|
171
|
-
version:
|
171
|
+
version: 1.3.1
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
174
|
rubygems_version: 1.8.6
|