utils 0.0.85 → 0.0.86

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc63c9706c910335881a4b0d9e83037811cdbdea
4
- data.tar.gz: f5de311f8e3a51672bd490df3f4e6da4e2db36d1
3
+ metadata.gz: 853e49d28512df9f695b4fefefd6dd2249d198b6
4
+ data.tar.gz: dd9f7fcf393065ccb36ab8f7922a62e8c76f991b
5
5
  SHA512:
6
- metadata.gz: 30856d4b336f28aa01d7d32fa7ec628221cdbf37984d1f8227df06d8ffb22ff15a1d038e99cc15fb8367c101b4a69419e4763efa15a3b34da7a5b8f8034986d9
7
- data.tar.gz: 8413431f778eb52d52fe76b4a5b72502aa80a46b10a84fb4acd8a2822a36431e499593598085868370ad093e9e4a142baad4fabd8f59118310b5efd3e657c637
6
+ metadata.gz: 1afcf49d1594310e29ac405501226f2642a577855fef40097c66cc593d588c52a94a1373b6499a72c5f090e8b503917181eb804c04de314529ba71750a73debd
7
+ data.tar.gz: 3030e0800c1dba0885052fa96dafe89db30917e2454dedbd8922b5f28b280deb0367a5f678089a452d3c9178ebdae4e0c1aab9fd56f3b4af2e184b3cae16301e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.85
1
+ 0.0.86
data/bin/probe CHANGED
@@ -29,7 +29,7 @@ end
29
29
 
30
30
  def cmd(*args)
31
31
  puts args * ' '
32
- system(*args)
32
+ system(*args) or exit $?.exitstatus
33
33
  end
34
34
 
35
35
  def find_cmd(*cmds)
@@ -74,12 +74,22 @@ if $opt['l']
74
74
  end
75
75
 
76
76
  def run_job(job)
77
- output_message "Job #{job.inspect} about to run now:".black.on_yellow
77
+ message = "Job #{job.inspect} about to run now:".black
78
+ message = message.ask_and_send(:on_color, 166) || message.on_yellow
79
+ output_message message
78
80
  fork do
79
81
  exec(*cmd(job))
80
82
  end
81
83
  Process.wait
82
- output_message "Job #{job.inspect} was just run.".black.on_red
84
+ message = "Job #{job.inspect} was just run"
85
+ if $?.success?
86
+ message << " successfully."
87
+ message = message.black.on_green
88
+ else
89
+ message << " and failed with exit status #{$?.exitstatus}!"
90
+ message = message.white.on_red.blink
91
+ end
92
+ output_message message
83
93
  end
84
94
 
85
95
  def work_loop
@@ -1,6 +1,6 @@
1
1
  module Utils
2
2
  # Utils version
3
- VERSION = '0.0.85'
3
+ VERSION = '0.0.86'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "utils"
5
- s.version = "0.0.85"
5
+ s.version = "0.0.86"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.85
4
+ version: 0.0.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Frank