lib/navy/speak.rb in navy-1.0.6 vs lib/navy/speak.rb in navy-1.0.7

- old
+ new

@@ -16,11 +16,19 @@ def after_fork(*args, &block) set_hook(:after_fork, block_given? ? block : args[0]) end + def after_stop(*args, &block) + set_hook(:after_stop, block_given? ? block : args[0]) + end + def before_fork(*args, &block) set_hook(:before_fork, block_given? ? block : args[0]) + end + + def before_stop(*args, &block) + set_hook(:before_stop, block_given? ? block : args[0]) end def logger(obj) %w(debug info warn error fatal).each do |m| obj.respond_to?(m) and next \ No newline at end of file