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 +4 -4
- data/VERSION +1 -1
- data/bin/probe +13 -3
- data/lib/utils/version.rb +1 -1
- data/utils.gemspec +1 -1
- 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: 853e49d28512df9f695b4fefefd6dd2249d198b6
|
4
|
+
data.tar.gz: dd9f7fcf393065ccb36ab8f7922a62e8c76f991b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1afcf49d1594310e29ac405501226f2642a577855fef40097c66cc593d588c52a94a1373b6499a72c5f090e8b503917181eb804c04de314529ba71750a73debd
|
7
|
+
data.tar.gz: 3030e0800c1dba0885052fa96dafe89db30917e2454dedbd8922b5f28b280deb0367a5f678089a452d3c9178ebdae4e0c1aab9fd56f3b4af2e184b3cae16301e
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
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
|
-
|
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
|
-
|
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
|
data/lib/utils/version.rb
CHANGED
data/utils.gemspec
CHANGED