fyi 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/fyi +1 -3
- data/fyi.gemspec +1 -1
- data/lib/fyi.rb +1 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.8
|
data/bin/fyi
CHANGED
data/fyi.gemspec
CHANGED
data/lib/fyi.rb
CHANGED
@@ -23,6 +23,7 @@ class Fyi
|
|
23
23
|
def run
|
24
24
|
start_stopwatch
|
25
25
|
status, stdout, stderr = systemu @command
|
26
|
+
stop_stopwatch
|
26
27
|
status.exitstatus.to_i == 0 ? run_succeeded(stdout) : run_failed(stdout, stderr)
|
27
28
|
rescue Object => e
|
28
29
|
run_failed('', e.to_s)
|
@@ -31,12 +32,10 @@ class Fyi
|
|
31
32
|
private
|
32
33
|
|
33
34
|
def run_succeeded output
|
34
|
-
stop_stopwatch
|
35
35
|
notify :success, duration, output
|
36
36
|
end
|
37
37
|
|
38
38
|
def run_failed output, error
|
39
|
-
stop_stopwatch
|
40
39
|
notify :failure, duration, output, error
|
41
40
|
end
|
42
41
|
|