sprinkle 0.7.6.1 → 0.7.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +6 -6
- data/lib/sprinkle/actors/ssh.rb +5 -4
- data/lib/sprinkle/installers/thor.rb +1 -1
- data/lib/sprinkle/version.rb +1 -1
- data/sprinkle.gemspec +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sprinkle (0.7.6)
|
4
|
+
sprinkle (0.7.6.2)
|
5
5
|
activesupport (>= 2.0.2)
|
6
|
-
capistrano (
|
6
|
+
capistrano (~> 2.5.5)
|
7
7
|
erubis (>= 2.7.0)
|
8
8
|
highline (>= 1.4.0)
|
9
9
|
open4 (>= 1.1.0)
|
@@ -28,12 +28,12 @@ GEM
|
|
28
28
|
i18n (= 0.6.1)
|
29
29
|
multi_json (~> 1.0)
|
30
30
|
builder (3.0.4)
|
31
|
-
capistrano (2.
|
31
|
+
capistrano (2.5.21)
|
32
32
|
highline
|
33
33
|
net-scp (>= 1.0.0)
|
34
34
|
net-sftp (>= 2.0.0)
|
35
35
|
net-ssh (>= 2.0.14)
|
36
|
-
net-ssh-gateway (>= 1.
|
36
|
+
net-ssh-gateway (>= 1.0.0)
|
37
37
|
coderay (1.0.9)
|
38
38
|
diff-lcs (1.2.4)
|
39
39
|
erubis (2.7.0)
|
@@ -44,12 +44,12 @@ GEM
|
|
44
44
|
journey (1.0.4)
|
45
45
|
json (1.8.0)
|
46
46
|
method_source (0.8.1)
|
47
|
-
multi_json (1.
|
47
|
+
multi_json (1.8.2)
|
48
48
|
net-scp (1.1.2)
|
49
49
|
net-ssh (>= 2.6.5)
|
50
50
|
net-sftp (2.1.2)
|
51
51
|
net-ssh (>= 2.6.5)
|
52
|
-
net-ssh (2.
|
52
|
+
net-ssh (2.7.0)
|
53
53
|
net-ssh-gateway (1.2.0)
|
54
54
|
net-ssh (>= 2.6.5)
|
55
55
|
open4 (1.3.0)
|
data/lib/sprinkle/actors/ssh.rb
CHANGED
@@ -154,17 +154,18 @@ module Sprinkle
|
|
154
154
|
def prepare_commands(commands) #:nodoc:
|
155
155
|
return commands unless sudo?
|
156
156
|
commands.map do |command|
|
157
|
-
next command if command.is_a?(Symbol)
|
157
|
+
next command if command.is_a?(Symbol) || command.is_a?(Sprinkle::Commands::Command)
|
158
158
|
command.match(/^#{sudo_command}/) ? command : "#{sudo_command} #{command}"
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
162
162
|
def execute_on_host(commands,host) #:nodoc:
|
163
|
+
|
163
164
|
prepare_commands(commands).each do |cmd|
|
164
165
|
case cmd
|
165
|
-
when
|
166
|
+
when Commands::Reconnect then
|
166
167
|
reconnect host
|
167
|
-
when
|
168
|
+
when Commands::Transfer then
|
168
169
|
transfer_to_host(cmd.source, cmd.destination, host,
|
169
170
|
:recursive => cmd.recursive?)
|
170
171
|
else
|
@@ -230,7 +231,7 @@ module Sprinkle
|
|
230
231
|
scp.upload! source, destination, :recursive => opts[:recursive], :chunk_size => 32.kilobytes
|
231
232
|
rescue RuntimeError => e
|
232
233
|
if e.message =~ /Permission denied/
|
233
|
-
raise TransferFailure.no_permission(@installer,e)
|
234
|
+
raise Sprinkle::Errors::TransferFailure.no_permission(@installer,e)
|
234
235
|
else
|
235
236
|
raise e
|
236
237
|
end
|
data/lib/sprinkle/version.rb
CHANGED
data/sprinkle.gemspec
CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
34
34
|
s.add_runtime_dependency(%q<open4>, [">= 1.1.0"])
|
35
35
|
s.add_runtime_dependency(%q<activesupport>, [">= 2.0.2"])
|
36
36
|
s.add_runtime_dependency(%q<highline>, [">= 1.4.0"])
|
37
|
-
s.add_runtime_dependency(%q<capistrano>, ["
|
37
|
+
s.add_runtime_dependency(%q<capistrano>, ["~> 2.5.5"])
|
38
38
|
|
39
39
|
end
|
40
40
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprinkle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.6.
|
4
|
+
version: 0.7.6.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-10-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|
@@ -129,7 +129,7 @@ dependencies:
|
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
none: false
|
131
131
|
requirements:
|
132
|
-
- -
|
132
|
+
- - ~>
|
133
133
|
- !ruby/object:Gem::Version
|
134
134
|
version: 2.5.5
|
135
135
|
type: :runtime
|
@@ -137,7 +137,7 @@ dependencies:
|
|
137
137
|
version_requirements: !ruby/object:Gem::Requirement
|
138
138
|
none: false
|
139
139
|
requirements:
|
140
|
-
- -
|
140
|
+
- - ~>
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: 2.5.5
|
143
143
|
description: Ruby DSL based software provisioning tool
|