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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d2ac07cf6fe9bfa3671f5db8459539a8ad2621d
4
- data.tar.gz: 1b4e09fd23bce23a59ad9aae5c365afa2a185dc7
3
+ metadata.gz: d7cf7544800993fd89ecd02a4c9ddfd45f73d07c
4
+ data.tar.gz: 0e920ba9412abb5f7b6e8bace2065fdc9b988c60
5
5
  SHA512:
6
- metadata.gz: 7913b30988eeaef6304ce9e046a00b5bbfcae7bee2269d02bbd8d176af7330597e2304a7965d0b1e005b7e72b12ebb5e4744dc21c74643711349f4c143702e98
7
- data.tar.gz: d8c0b38d0370e4ba279a6baa7594b41f709679906d1ac9390c1e54be47f559e5a147b4afd45f812aee9ecb538f9150c69fbb7d817bfdd0a67ba3af7fa28c9376
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-puppet"
3
- spec.version = "0.4.2"
3
+ spec.version = "0.4.3"
4
4
  spec.authors = ["Jonathan Gnagy"]
5
5
  spec.email = ["jgnagy@knuedge.com"]
6
6
  spec.description = "Some basic Puppet interactions for Lita"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Gnagy