lita-puppet 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/utils/ssh.rb +8 -2
- data/lita-puppet.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7cf7544800993fd89ecd02a4c9ddfd45f73d07c
|
4
|
+
data.tar.gz: 0e920ba9412abb5f7b6e8bace2065fdc9b988c60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5282c16e4186715b5b63e1cdc2dd8034d1f5983a0917cf68ede73a84166773ce7134afc5a9828dc339b159f6f0b7cadb894f648a6f85c88e8739e4a86401520f
|
7
|
+
data.tar.gz: 22310b6271ef2ac2f888d9fbdaa5d375eae84f27488f2385dd98ed28f0ae952bc44cea5dfed3e0e2d1e96a4c1d4613b334f7478bc61c328826f269931f15428f
|
data/lib/utils/ssh.rb
CHANGED
@@ -12,16 +12,22 @@ module Utils
|
|
12
12
|
opts[:host],
|
13
13
|
user: opts[:user],
|
14
14
|
auth_methods: ['publickey'],
|
15
|
-
password_prompt: false
|
15
|
+
password_prompt: false,
|
16
|
+
error: STDOUT # send STDERR to STDOUT for things that actually print
|
16
17
|
)
|
17
18
|
|
18
19
|
exception = nil
|
19
20
|
|
21
|
+
# Getting serious about not crashing Lita...
|
20
22
|
output = begin
|
21
23
|
Timeout::timeout(opts[:timeout]) do
|
22
24
|
yield remote # pass our host back to the user to work with
|
23
25
|
end
|
24
|
-
rescue => e
|
26
|
+
rescue Rye::Err => e
|
27
|
+
exception = e
|
28
|
+
rescue StandardError => e
|
29
|
+
exception = e
|
30
|
+
rescue Exception => e
|
25
31
|
exception = e
|
26
32
|
ensure
|
27
33
|
remote.disconnect
|
data/lita-puppet.gemspec
CHANGED