From 85a41a0084f5fde551ca422c07ca766cdc63ce1a Mon Sep 17 00:00:00 2001 From: martinahansen Date: Wed, 16 Jun 2010 11:55:16 +0000 Subject: [PATCH] ruby code fixing exit git-svn-id: http://biopieces.googlecode.com/svn/trunk@982 74ccb610-7750-0410-82ae-013aeee3265d --- code_ruby/Maasha/lib/biopieces.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code_ruby/Maasha/lib/biopieces.rb b/code_ruby/Maasha/lib/biopieces.rb index 0135ad0..47e9f3d 100644 --- a/code_ruby/Maasha/lib/biopieces.rb +++ b/code_ruby/Maasha/lib/biopieces.rb @@ -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 -- 2.39.5