]> git.donarmstrong.com Git - biopieces.git/commitdiff
ruby code fixing exit
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 16 Jun 2010 11:55:16 +0000 (11:55 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 16 Jun 2010 11:55:16 +0000 (11:55 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@982 74ccb610-7750-0410-82ae-013aeee3265d

code_ruby/Maasha/lib/biopieces.rb

index 0135ad041d3d1111ca886702d529b43596bae4b1..47e9f3df271cc13579ea73fe978f6e48a58e0248 100644 (file)
@@ -4,6 +4,8 @@ require 'optparse'
 require 'open3'
 require 'pp'
 
+at_exit{ puts "All done, time to make sure log entry is written and tmpdir is removed." }
+
 # Biopieces are command line scripts and uses OptionParser to parse command line
 # options according to a list of casts. Each cast prescribes the long and short
 # name of the option, the type, if it is mandatory, the default value, and allowed
@@ -102,8 +104,7 @@ end
 
 
 # Error class for all exceptions to do with option casts.
-class CastError < StandardError
-end
+class CastError < StandardError; end
 
 
 # Class to handle casts of command line options. Each cast prescribes the long and