perus 0.1.23 → 0.1.24

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: b07d8761ba75a90905014a0b9b9c9e61e82d83bf
4
- data.tar.gz: 24b59fd85398aaffa2c82a7abda42483980e052b
3
+ metadata.gz: 9285d7db8f4577e58c0d698a9dcd3d7dfdf89385
4
+ data.tar.gz: 04eeb42af36d3815af1bced0a472a4742cd59429
5
5
  SHA512:
6
- metadata.gz: 42fb2b6b1c0e01c0737a6aeda7029d03b43f5c178a608255ab586b624f60c2e2a0f44cf4da7c9a0e601c4e717c01cc6c0c93e29748d667fc834033926f3c6897
7
- data.tar.gz: 073d7bbd5a344181bd471e28a381c854094010b74895eb7f36adaeba95c629fc8e7c83252785e330ef1edd9bcb3f7fd418ab36b3b611a07cda14961ab5d792fa
6
+ metadata.gz: 79ff8eedf47b4419ceb445ae89770d442372e725f7b876166dd3eee0767f80f5128cfa2c046b1e00b6b58356ff4d8582fe0dc954b8b7ffea7c36987cb7eadf85
7
+ data.tar.gz: f257ec0809756e576c6cbe55281cc22be4a576e80bcbd8b31d3980855cb505298b94f2bd8dba076d3fd0df918a4d15d3e1ce332d5fb8f845b986504c60222129
@@ -127,12 +127,12 @@ module Perus::Pinger
127
127
  def shell(command)
128
128
  out, err, status = Open3.capture3(command)
129
129
 
130
- unless err.empty?
131
- raise ShellCommandError.new(err.strip)
130
+ if status.exitstatus > 0 && !err.empty?
131
+ raise ShellCommandError.new("(cmd: #{command}) => #{err.strip}; #{out.strip}; exit: #{status.exitstatus}")
132
132
  end
133
133
 
134
134
  if status.exitstatus > 0
135
- raise ShellCommandError.new("#{out.strip}; exit: #{status.exitstatus}")
135
+ raise ShellCommandError.new("(cmd: #{command}) => #{out.strip}; exit: #{status.exitstatus}")
136
136
  end
137
137
 
138
138
  out
data/lib/perus/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Perus
2
- VERSION = "0.1.23"
2
+ VERSION = "0.1.24"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Cannings
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler