From 7236a2ece7fcf3174ee8e369c11e5e7d85ed4670 Mon Sep 17 00:00:00 2001 From: Tom Werner Date: Fri, 10 Aug 2007 18:01:21 -0700 Subject: [PATCH] use exit! for fun and profit --- bin/god | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bin/god b/bin/god index 727f9b3..9488da6 100755 --- a/bin/god +++ b/bin/god @@ -42,17 +42,14 @@ EOF end.parse! if options[:version] - # disable at_exit - module God; def self.at_exit; end; end - # print version puts "Version #{God::VERSION}" - exit + exit! elsif command = ARGV[0] # a command was specified # disable at_exit - module God; def self.at_exit; end; end + # module God; def self.at_exit; end; end # get the name of the watch/group name = ARGV[1] @@ -75,6 +72,8 @@ elsif command = ARGV[0] rescue God::InvalidCommandError abort "Command '#{command}' is not valid. Run 'god --help' for usage" end + + exit! else # start god if !options[:daemonize] -- 2.11.4.GIT