lib/ronin/cache/extension_cache.rb in ronin-0.1.2 vs lib/ronin/cache/extension_cache.rb in ronin-0.1.3
- old
+ new
@@ -1,11 +1,11 @@
#
#--
# Ronin - A Ruby platform designed for information security and data
# exploration tasks.
#
-# Copyright (c) 2006-2008 Hal Brodigan (postmodern.mod3 at gmail.com)
+# Copyright (c) 2006-2009 Hal Brodigan (postmodern.mod3 at gmail.com)
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
@@ -35,10 +35,10 @@
def initialize(&block)
super() do |hash,key|
hash[name] = load_extension(key.to_s)
end
- catch('EXIT') do
+ at_exit do
each_extension { |ext| ext.perform_teardown }
end
block.call(self) if block
end