execute 0.1.58 → 0.1.60
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 +5 -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: 8ef06380e0ee0edf326fa8418bc8c2c8b49b646b
|
4
|
+
data.tar.gz: 5e19c0139037ea6b21b88f66b66bc8cf6210913c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 235a92e95e683b3c007fe903f7cb3a4bca903897ae321a4e5236a33b7366ead853904e4a89b029f116f13b4080a7b05295827bed4aa8e7135c318767a622e7fb
|
7
|
+
data.tar.gz: 9d43f1145228df94a3ebd8a5197211bf563be3fe96afb533887ae6a37f6f1e580d093d5b260ee689b42b1e3555aeebc0ccb0c15ef8df9570a5e3297e0492ef65
|
data/lib/cmd.rb
CHANGED
@@ -49,8 +49,8 @@ class CMD < Hash
|
|
49
49
|
end
|
50
50
|
|
51
51
|
puts self[:command] if(self[:echo_command] || self[:debug])
|
52
|
-
|
53
|
-
call_capture
|
52
|
+
call_popen
|
53
|
+
#call_capture
|
54
54
|
|
55
55
|
if(self[:debug])
|
56
56
|
puts "command: #{self[:command]}"
|
@@ -117,6 +117,9 @@ class CMD < Hash
|
|
117
117
|
self[:error] = error unless(error.empty?)
|
118
118
|
self[:exit_code] = wait_thr.value.to_i
|
119
119
|
end
|
120
|
+
rescue Interrupt => e
|
121
|
+
interrupt
|
122
|
+
raise e
|
120
123
|
rescue Exception => e
|
121
124
|
self[:error] = "#{self[:error]}\nException: #{e.to_s}"
|
122
125
|
self[:exit_code]=1 unless(self[:exit_code].nil? || (self[:exit_code] == 0))
|