execute 0.1.43 → 0.1.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cmd.rb +2 -2
- 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: a1439547e5faf4c1d64cb069946ccede33985e4d
|
4
|
+
data.tar.gz: ba154654bf09d7c91443d077de618c00966d5e60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4e1567d5d2342a362a84d6c7e299b90d3dae8a41cfac33bc2576d3774df1360b8ad97a8d757a99153c5c84c2c414ea1af271c64f6b1be9a7c61d9a219e34daa
|
7
|
+
data.tar.gz: 53eb5841d430fa20363f112adfa044d458512287f7928b0af1c02dd7da73b98fcba8b7fd6d4967db911cd68cbbce60728c33978016949b177d898f5d97e3aff6
|
data/lib/cmd.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'open3'
|
2
2
|
require 'sys/proctable'
|
3
|
-
|
3
|
+
require 'timeout'
|
4
4
|
|
5
5
|
class CMD < Hash
|
6
6
|
private
|
@@ -57,7 +57,7 @@ class CMD < Hash
|
|
57
57
|
puts "exit_code: #{self[:exit_code]}"
|
58
58
|
end
|
59
59
|
|
60
|
-
raise TimeoutError.new(self[:command]
|
60
|
+
raise TimeoutError.new("#{self[:command]} timeout: #{self[:timeout]}") if(key?(:timed_out) && self[:timeout_raise_error])
|
61
61
|
|
62
62
|
if((self[:exit_code] != 0) && !self[:ignore_exit_code])
|
63
63
|
exception_text = "Exit code: #{self[:exit_code]}"
|