summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2007-12-05 13:41:00 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2007-12-05 13:41:00 +0100
commit187e9d06e9f4255e9069a3fc3c7e232e07be8395 (patch)
tree84bb8550044ec1b25dc2ba105e7bcfc15040b886 /bin
parent3498930d685053eb0f698eee793653e027a3a56e (diff)
downloadbacon-187e9d06e9f4255e9069a3fc3c7e232e07be8395.tar.gz
bacon-187e9d06e9f4255e9069a3fc3c7e232e07be8395.tar.xz
bacon-187e9d06e9f4255e9069a3fc3c7e232e07be8395.zip
Move summary outputter to lib/bacon.rb
darcs-hash:20071205124100-4fc50-369b336a902888b068c626b08a7ae5869d31c117.gz
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bacon9
1 files changed, 1 insertions, 8 deletions
diff --git a/bin/bacon b/bin/bacon
index 4ed32e0..ad70263 100755
--- a/bin/bacon
+++ b/bin/bacon
@@ -97,14 +97,7 @@ end
 require 'bacon'
 
 Bacon.extend Bacon.const_get(output)
-at_exit {
-  Bacon.handle_summary
-  if $!
-    raise $!
-  elsif Bacon::Counter[:errors] + Bacon::Counter[:failed] > 0
-    exit 1
-  end
-}
+Bacon.summary_on_exit
 
 files.each { |file|
   load file