dev 2.0.105 → 2.0.106
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/commands/command.rb +8 -0
- 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: 4f3dfc6e783cd5e3ef36305ff98502ca6511b3c2
|
4
|
+
data.tar.gz: d8aaad074aa0ff6bd0cccda838eaf34b9191cbd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73e6c98c82c673fc735e0c9f6afdf004e5a334693f72f482d66a27ebab1d2ab022d021e64e4b21b24319cc651b43966c4c007920fdd28562ce781c86759366d3
|
7
|
+
data.tar.gz: ed9275792a88342e480b8c402a3353a7f55bdc864fb3e28d166623584641510d02173e79d912a73d679740408adefbfcd8240b5d67a75ef0aea67423b7452feb
|
data/lib/commands/command.rb
CHANGED
@@ -184,6 +184,14 @@ class Command < Hash
|
|
184
184
|
cmd[:output]
|
185
185
|
end
|
186
186
|
|
187
|
+
def self.error command
|
188
|
+
cmd = Command.new(command)
|
189
|
+
cmd[:ignore_failure]=true
|
190
|
+
cmd[:quiet]=true
|
191
|
+
cmd.execute
|
192
|
+
cmd[:error]
|
193
|
+
end
|
194
|
+
|
187
195
|
def getFormattedTimeSpan timespan
|
188
196
|
seconds = timespan
|
189
197
|
seconds.to_s + " sec"
|