capistrano 2.4.0 → 2.4.1
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/{CHANGELOG → CHANGELOG.rdoc} +30 -21
- data/Manifest +104 -0
- data/{README → README.rdoc} +29 -3
- data/Rakefile +28 -0
- data/capistrano.gemspec +67 -0
- data/lib/capistrano/configuration/actions/inspect.rb +1 -1
- data/lib/capistrano/ssh.rb +4 -6
- data/lib/capistrano/version.rb +12 -3
- data/setup.rb +1346 -0
- data/test/configuration/actions/inspect_test.rb +7 -4
- data/test/configuration/connections_test.rb +2 -2
- data/test/ssh_test.rb +0 -1
- metadata +117 -78
- data/MIT-LICENSE +0 -20
|
@@ -37,9 +37,12 @@ class ConfigurationActionsInspectTest < Test::Unit::TestCase
|
|
|
37
37
|
@config.capture("hostname", :foo => "bar")
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
def
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
def test_capture_with_stderr_should_emit_stderr_via_warn
|
|
41
|
+
ch = mock("channel")
|
|
42
|
+
ch.expects(:[]).with(:server).returns(server("capistrano"))
|
|
43
|
+
@config.expects(:invoke_command).yields(ch, :err, "boom")
|
|
44
|
+
@config.expects(:warn).with("[err :: capistrano] boom")
|
|
45
|
+
@config.capture("hostname")
|
|
43
46
|
end
|
|
44
47
|
|
|
45
48
|
def test_capture_with_stdout_should_aggregate_and_return_stdout
|
|
@@ -59,4 +62,4 @@ class ConfigurationActionsInspectTest < Test::Unit::TestCase
|
|
|
59
62
|
@config.channel = channel
|
|
60
63
|
@config.script = output
|
|
61
64
|
end
|
|
62
|
-
end
|
|
65
|
+
end
|
|
@@ -60,7 +60,7 @@ class ConfigurationConnectionsTest < Test::Unit::TestCase
|
|
|
60
60
|
|
|
61
61
|
def test_connection_factory_should_return_gateway_instance_if_gateway_variable_is_set
|
|
62
62
|
@config.values[:gateway] = "j@capistrano"
|
|
63
|
-
Net::SSH::Gateway.expects(:new).with("capistrano", "j", :
|
|
63
|
+
Net::SSH::Gateway.expects(:new).with("capistrano", "j", :password => nil, :auth_methods => %w(publickey hostbased)).returns(stub_everything)
|
|
64
64
|
assert_instance_of Capistrano::Configuration::Connections::GatewayConnectionFactory, @config.connection_factory
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -324,4 +324,4 @@ class ConfigurationConnectionsTest < Test::Unit::TestCase
|
|
|
324
324
|
:max_hosts => options[:max_hosts]
|
|
325
325
|
)
|
|
326
326
|
end
|
|
327
|
-
end
|
|
327
|
+
end
|
data/test/ssh_test.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.4.
|
|
4
|
+
version: 2.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jamis Buck
|
|
@@ -9,69 +9,85 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2008-06-
|
|
12
|
+
date: 2008-06-27 00:00:00 -06:00
|
|
13
13
|
default_executable:
|
|
14
|
-
dependencies:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
19
|
-
requirements:
|
|
20
|
-
- - ">="
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 2.0.0
|
|
23
|
-
version:
|
|
24
|
-
- !ruby/object:Gem::Dependency
|
|
25
|
-
name: net-sftp
|
|
26
|
-
version_requirement:
|
|
27
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
28
|
-
requirements:
|
|
29
|
-
- - ">="
|
|
30
|
-
- !ruby/object:Gem::Version
|
|
31
|
-
version: 2.0.0
|
|
32
|
-
version:
|
|
33
|
-
- !ruby/object:Gem::Dependency
|
|
34
|
-
name: net-scp
|
|
35
|
-
version_requirement:
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - ">="
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 1.0.0
|
|
41
|
-
version:
|
|
42
|
-
- !ruby/object:Gem::Dependency
|
|
43
|
-
name: net-ssh-gateway
|
|
44
|
-
version_requirement:
|
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
46
|
-
requirements:
|
|
47
|
-
- - ">="
|
|
48
|
-
- !ruby/object:Gem::Version
|
|
49
|
-
version: 1.0.0
|
|
50
|
-
version:
|
|
51
|
-
- !ruby/object:Gem::Dependency
|
|
52
|
-
name: highline
|
|
53
|
-
version_requirement:
|
|
54
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
55
|
-
requirements:
|
|
56
|
-
- - ">="
|
|
57
|
-
- !ruby/object:Gem::Version
|
|
58
|
-
version: "0"
|
|
59
|
-
version:
|
|
60
|
-
description:
|
|
61
|
-
email: jamis@37signals.com
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description: Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.
|
|
17
|
+
email: jamis@jamisbuck.org
|
|
62
18
|
executables:
|
|
63
19
|
- cap
|
|
64
20
|
- capify
|
|
65
21
|
extensions: []
|
|
66
22
|
|
|
67
|
-
extra_rdoc_files:
|
|
68
|
-
|
|
23
|
+
extra_rdoc_files:
|
|
24
|
+
- CHANGELOG.rdoc
|
|
25
|
+
- lib/capistrano/callback.rb
|
|
26
|
+
- lib/capistrano/cli/execute.rb
|
|
27
|
+
- lib/capistrano/cli/help.rb
|
|
28
|
+
- lib/capistrano/cli/help.txt
|
|
29
|
+
- lib/capistrano/cli/options.rb
|
|
30
|
+
- lib/capistrano/cli/ui.rb
|
|
31
|
+
- lib/capistrano/cli.rb
|
|
32
|
+
- lib/capistrano/command.rb
|
|
33
|
+
- lib/capistrano/configuration/actions/file_transfer.rb
|
|
34
|
+
- lib/capistrano/configuration/actions/inspect.rb
|
|
35
|
+
- lib/capistrano/configuration/actions/invocation.rb
|
|
36
|
+
- lib/capistrano/configuration/callbacks.rb
|
|
37
|
+
- lib/capistrano/configuration/connections.rb
|
|
38
|
+
- lib/capistrano/configuration/execution.rb
|
|
39
|
+
- lib/capistrano/configuration/loading.rb
|
|
40
|
+
- lib/capistrano/configuration/namespaces.rb
|
|
41
|
+
- lib/capistrano/configuration/roles.rb
|
|
42
|
+
- lib/capistrano/configuration/servers.rb
|
|
43
|
+
- lib/capistrano/configuration/variables.rb
|
|
44
|
+
- lib/capistrano/configuration.rb
|
|
45
|
+
- lib/capistrano/errors.rb
|
|
46
|
+
- lib/capistrano/extensions.rb
|
|
47
|
+
- lib/capistrano/logger.rb
|
|
48
|
+
- lib/capistrano/processable.rb
|
|
49
|
+
- lib/capistrano/recipes/compat.rb
|
|
50
|
+
- lib/capistrano/recipes/deploy/dependencies.rb
|
|
51
|
+
- lib/capistrano/recipes/deploy/local_dependency.rb
|
|
52
|
+
- lib/capistrano/recipes/deploy/remote_dependency.rb
|
|
53
|
+
- lib/capistrano/recipes/deploy/scm/accurev.rb
|
|
54
|
+
- lib/capistrano/recipes/deploy/scm/base.rb
|
|
55
|
+
- lib/capistrano/recipes/deploy/scm/bzr.rb
|
|
56
|
+
- lib/capistrano/recipes/deploy/scm/cvs.rb
|
|
57
|
+
- lib/capistrano/recipes/deploy/scm/darcs.rb
|
|
58
|
+
- lib/capistrano/recipes/deploy/scm/git.rb
|
|
59
|
+
- lib/capistrano/recipes/deploy/scm/mercurial.rb
|
|
60
|
+
- lib/capistrano/recipes/deploy/scm/none.rb
|
|
61
|
+
- lib/capistrano/recipes/deploy/scm/perforce.rb
|
|
62
|
+
- lib/capistrano/recipes/deploy/scm/subversion.rb
|
|
63
|
+
- lib/capistrano/recipes/deploy/scm.rb
|
|
64
|
+
- lib/capistrano/recipes/deploy/strategy/base.rb
|
|
65
|
+
- lib/capistrano/recipes/deploy/strategy/checkout.rb
|
|
66
|
+
- lib/capistrano/recipes/deploy/strategy/copy.rb
|
|
67
|
+
- lib/capistrano/recipes/deploy/strategy/export.rb
|
|
68
|
+
- lib/capistrano/recipes/deploy/strategy/remote.rb
|
|
69
|
+
- lib/capistrano/recipes/deploy/strategy/remote_cache.rb
|
|
70
|
+
- lib/capistrano/recipes/deploy/strategy.rb
|
|
71
|
+
- lib/capistrano/recipes/deploy/templates/maintenance.rhtml
|
|
72
|
+
- lib/capistrano/recipes/deploy.rb
|
|
73
|
+
- lib/capistrano/recipes/standard.rb
|
|
74
|
+
- lib/capistrano/recipes/templates/maintenance.rhtml
|
|
75
|
+
- lib/capistrano/recipes/upgrade.rb
|
|
76
|
+
- lib/capistrano/role.rb
|
|
77
|
+
- lib/capistrano/server_definition.rb
|
|
78
|
+
- lib/capistrano/shell.rb
|
|
79
|
+
- lib/capistrano/ssh.rb
|
|
80
|
+
- lib/capistrano/task_definition.rb
|
|
81
|
+
- lib/capistrano/transfer.rb
|
|
82
|
+
- lib/capistrano/version.rb
|
|
83
|
+
- lib/capistrano.rb
|
|
84
|
+
- README.rdoc
|
|
69
85
|
files:
|
|
70
86
|
- bin/cap
|
|
71
87
|
- bin/capify
|
|
72
|
-
-
|
|
88
|
+
- CHANGELOG.rdoc
|
|
89
|
+
- examples/sample.rb
|
|
73
90
|
- lib/capistrano/callback.rb
|
|
74
|
-
- lib/capistrano/cli
|
|
75
91
|
- lib/capistrano/cli/execute.rb
|
|
76
92
|
- lib/capistrano/cli/help.rb
|
|
77
93
|
- lib/capistrano/cli/help.txt
|
|
@@ -79,8 +95,6 @@ files:
|
|
|
79
95
|
- lib/capistrano/cli/ui.rb
|
|
80
96
|
- lib/capistrano/cli.rb
|
|
81
97
|
- lib/capistrano/command.rb
|
|
82
|
-
- lib/capistrano/configuration
|
|
83
|
-
- lib/capistrano/configuration/actions
|
|
84
98
|
- lib/capistrano/configuration/actions/file_transfer.rb
|
|
85
99
|
- lib/capistrano/configuration/actions/inspect.rb
|
|
86
100
|
- lib/capistrano/configuration/actions/invocation.rb
|
|
@@ -97,13 +111,10 @@ files:
|
|
|
97
111
|
- lib/capistrano/extensions.rb
|
|
98
112
|
- lib/capistrano/logger.rb
|
|
99
113
|
- lib/capistrano/processable.rb
|
|
100
|
-
- lib/capistrano/recipes
|
|
101
114
|
- lib/capistrano/recipes/compat.rb
|
|
102
|
-
- lib/capistrano/recipes/deploy
|
|
103
115
|
- lib/capistrano/recipes/deploy/dependencies.rb
|
|
104
116
|
- lib/capistrano/recipes/deploy/local_dependency.rb
|
|
105
117
|
- lib/capistrano/recipes/deploy/remote_dependency.rb
|
|
106
|
-
- lib/capistrano/recipes/deploy/scm
|
|
107
118
|
- lib/capistrano/recipes/deploy/scm/accurev.rb
|
|
108
119
|
- lib/capistrano/recipes/deploy/scm/base.rb
|
|
109
120
|
- lib/capistrano/recipes/deploy/scm/bzr.rb
|
|
@@ -115,7 +126,6 @@ files:
|
|
|
115
126
|
- lib/capistrano/recipes/deploy/scm/perforce.rb
|
|
116
127
|
- lib/capistrano/recipes/deploy/scm/subversion.rb
|
|
117
128
|
- lib/capistrano/recipes/deploy/scm.rb
|
|
118
|
-
- lib/capistrano/recipes/deploy/strategy
|
|
119
129
|
- lib/capistrano/recipes/deploy/strategy/base.rb
|
|
120
130
|
- lib/capistrano/recipes/deploy/strategy/checkout.rb
|
|
121
131
|
- lib/capistrano/recipes/deploy/strategy/copy.rb
|
|
@@ -123,11 +133,9 @@ files:
|
|
|
123
133
|
- lib/capistrano/recipes/deploy/strategy/remote.rb
|
|
124
134
|
- lib/capistrano/recipes/deploy/strategy/remote_cache.rb
|
|
125
135
|
- lib/capistrano/recipes/deploy/strategy.rb
|
|
126
|
-
- lib/capistrano/recipes/deploy/templates
|
|
127
136
|
- lib/capistrano/recipes/deploy/templates/maintenance.rhtml
|
|
128
137
|
- lib/capistrano/recipes/deploy.rb
|
|
129
138
|
- lib/capistrano/recipes/standard.rb
|
|
130
|
-
- lib/capistrano/recipes/templates
|
|
131
139
|
- lib/capistrano/recipes/templates/maintenance.rhtml
|
|
132
140
|
- lib/capistrano/recipes/upgrade.rb
|
|
133
141
|
- lib/capistrano/role.rb
|
|
@@ -138,16 +146,15 @@ files:
|
|
|
138
146
|
- lib/capistrano/transfer.rb
|
|
139
147
|
- lib/capistrano/version.rb
|
|
140
148
|
- lib/capistrano.rb
|
|
141
|
-
-
|
|
142
|
-
-
|
|
149
|
+
- Rakefile
|
|
150
|
+
- README.rdoc
|
|
151
|
+
- setup.rb
|
|
143
152
|
- test/cli/execute_test.rb
|
|
144
153
|
- test/cli/help_test.rb
|
|
145
154
|
- test/cli/options_test.rb
|
|
146
155
|
- test/cli/ui_test.rb
|
|
147
156
|
- test/cli_test.rb
|
|
148
157
|
- test/command_test.rb
|
|
149
|
-
- test/configuration
|
|
150
|
-
- test/configuration/actions
|
|
151
158
|
- test/configuration/actions/file_transfer_test.rb
|
|
152
159
|
- test/configuration/actions/inspect_test.rb
|
|
153
160
|
- test/configuration/actions/invocation_test.rb
|
|
@@ -160,18 +167,14 @@ files:
|
|
|
160
167
|
- test/configuration/servers_test.rb
|
|
161
168
|
- test/configuration/variables_test.rb
|
|
162
169
|
- test/configuration_test.rb
|
|
163
|
-
- test/deploy
|
|
164
170
|
- test/deploy/local_dependency_test.rb
|
|
165
171
|
- test/deploy/remote_dependency_test.rb
|
|
166
|
-
- test/deploy/scm
|
|
167
172
|
- test/deploy/scm/accurev_test.rb
|
|
168
173
|
- test/deploy/scm/base_test.rb
|
|
169
174
|
- test/deploy/scm/git_test.rb
|
|
170
175
|
- test/deploy/scm/mercurial_test.rb
|
|
171
|
-
- test/deploy/strategy
|
|
172
176
|
- test/deploy/strategy/copy_test.rb
|
|
173
177
|
- test/extensions_test.rb
|
|
174
|
-
- test/fixtures
|
|
175
178
|
- test/fixtures/cli_integration.rb
|
|
176
179
|
- test/fixtures/config.rb
|
|
177
180
|
- test/fixtures/custom.rb
|
|
@@ -183,14 +186,18 @@ files:
|
|
|
183
186
|
- test/task_definition_test.rb
|
|
184
187
|
- test/transfer_test.rb
|
|
185
188
|
- test/utils.rb
|
|
186
|
-
-
|
|
187
|
-
-
|
|
188
|
-
- CHANGELOG
|
|
189
|
+
- Manifest
|
|
190
|
+
- capistrano.gemspec
|
|
189
191
|
has_rdoc: true
|
|
190
192
|
homepage: http://www.capify.org
|
|
191
193
|
post_install_message:
|
|
192
|
-
rdoc_options:
|
|
193
|
-
|
|
194
|
+
rdoc_options:
|
|
195
|
+
- --line-numbers
|
|
196
|
+
- --inline-source
|
|
197
|
+
- --title
|
|
198
|
+
- Capistrano
|
|
199
|
+
- --main
|
|
200
|
+
- README.rdoc
|
|
194
201
|
require_paths:
|
|
195
202
|
- lib
|
|
196
203
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
@@ -208,9 +215,41 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
208
215
|
requirements: []
|
|
209
216
|
|
|
210
217
|
rubyforge_project: capistrano
|
|
211
|
-
rubygems_version: 1.
|
|
218
|
+
rubygems_version: 1.2.0
|
|
212
219
|
signing_key:
|
|
213
220
|
specification_version: 2
|
|
214
221
|
summary: Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.
|
|
215
|
-
test_files:
|
|
216
|
-
|
|
222
|
+
test_files:
|
|
223
|
+
- test/cli/execute_test.rb
|
|
224
|
+
- test/cli/help_test.rb
|
|
225
|
+
- test/cli/options_test.rb
|
|
226
|
+
- test/cli/ui_test.rb
|
|
227
|
+
- test/cli_test.rb
|
|
228
|
+
- test/command_test.rb
|
|
229
|
+
- test/configuration/actions/file_transfer_test.rb
|
|
230
|
+
- test/configuration/actions/inspect_test.rb
|
|
231
|
+
- test/configuration/actions/invocation_test.rb
|
|
232
|
+
- test/configuration/callbacks_test.rb
|
|
233
|
+
- test/configuration/connections_test.rb
|
|
234
|
+
- test/configuration/execution_test.rb
|
|
235
|
+
- test/configuration/loading_test.rb
|
|
236
|
+
- test/configuration/namespace_dsl_test.rb
|
|
237
|
+
- test/configuration/roles_test.rb
|
|
238
|
+
- test/configuration/servers_test.rb
|
|
239
|
+
- test/configuration/variables_test.rb
|
|
240
|
+
- test/configuration_test.rb
|
|
241
|
+
- test/deploy/local_dependency_test.rb
|
|
242
|
+
- test/deploy/remote_dependency_test.rb
|
|
243
|
+
- test/deploy/scm/accurev_test.rb
|
|
244
|
+
- test/deploy/scm/base_test.rb
|
|
245
|
+
- test/deploy/scm/git_test.rb
|
|
246
|
+
- test/deploy/scm/mercurial_test.rb
|
|
247
|
+
- test/deploy/strategy/copy_test.rb
|
|
248
|
+
- test/extensions_test.rb
|
|
249
|
+
- test/logger_test.rb
|
|
250
|
+
- test/role_test.rb
|
|
251
|
+
- test/server_definition_test.rb
|
|
252
|
+
- test/shell_test.rb
|
|
253
|
+
- test/ssh_test.rb
|
|
254
|
+
- test/task_definition_test.rb
|
|
255
|
+
- test/transfer_test.rb
|
data/MIT-LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2005-2007 Jamis Buck <jamis@37signals.com>
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|