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 +4 -4
- data/lib/perus/pinger/command.rb +3 -3
- data/lib/perus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9285d7db8f4577e58c0d698a9dcd3d7dfdf89385
|
4
|
+
data.tar.gz: 04eeb42af36d3815af1bced0a472a4742cd59429
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79ff8eedf47b4419ceb445ae89770d442372e725f7b876166dd3eee0767f80f5128cfa2c046b1e00b6b58356ff4d8582fe0dc954b8b7ffea7c36987cb7eadf85
|
7
|
+
data.tar.gz: f257ec0809756e576c6cbe55281cc22be4a576e80bcbd8b31d3980855cb505298b94f2bd8dba076d3fd0df918a4d15d3e1ce332d5fb8f845b986504c60222129
|
data/lib/perus/pinger/command.rb
CHANGED
@@ -127,12 +127,12 @@ module Perus::Pinger
|
|
127
127
|
def shell(command)
|
128
128
|
out, err, status = Open3.capture3(command)
|
129
129
|
|
130
|
-
|
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
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.
|
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-
|
11
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|