dev 2.0.105 → 2.0.106

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/commands/command.rb +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4aee5083c18c47f36edd2eaf601a0d0d0f0c0a8
4
- data.tar.gz: 88daafb8e83722d6564363f619d70c1c7ff0d8da
3
+ metadata.gz: 4f3dfc6e783cd5e3ef36305ff98502ca6511b3c2
4
+ data.tar.gz: d8aaad074aa0ff6bd0cccda838eaf34b9191cbd6
5
5
  SHA512:
6
- metadata.gz: b5e325ad1ac436be527e309238e59ca74b0e9d7da9047283e0263440b69f21fc9ab76ba43d6432bc37daeab11a2fbec2d173165f79e03ce467790ae4e9f223b3
7
- data.tar.gz: e362ddb61da30d41e6e6a053ac2844efbd2145f51f2f155449473485eac46f77ba3f13473203c1aec49638b3446b75ee4fc02c4752ac1d57b4d5b63226a16291
6
+ metadata.gz: 73e6c98c82c673fc735e0c9f6afdf004e5a334693f72f482d66a27ebab1d2ab022d021e64e4b21b24319cc651b43966c4c007920fdd28562ce781c86759366d3
7
+ data.tar.gz: ed9275792a88342e480b8c402a3353a7f55bdc864fb3e28d166623584641510d02173e79d912a73d679740408adefbfcd8240b5d67a75ef0aea67423b7452feb
@@ -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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.105
4
+ version: 2.0.106
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow