lib/plugins/plugin_plugins.rb in rsence-pre-2.1.0.2.pre vs lib/plugins/plugin_plugins.rb in rsence-pre-2.1.0.3.pre

- old
+ new

@@ -20,16 +20,20 @@ # To address them from this plugin, use +@plugin_plugins+ instead of +@plugins+ to access them. # # Install your sub-plugins into a directory named +plugins+ inside your plugin bundle. module PluginPlugins + # Makes @plugin_plugins accessible + attr :plugin_plugins + # Extended {#init}, delegates calls to the sub-plugins. def init super @plugin_plugins = RSence::PluginManager.new({ :plugin_paths => [ bundle_path('plugins') ], - :autoreload => @plugins.autoreload, + :autoreload => false, + :name_prefix => name_with_manager_s.to_sym, :parent_manager => @plugins }) end # Extended {#open}, delegates calls to the sub-plugins. @@ -40,9 +44,10 @@ # Extended {#close}, delegates calls to the sub-plugins. def close super @plugin_plugins.delegate(:close) + @plugin_plugins.shutdown end # Extended {#flush}, delegates calls to the sub-plugins. def flush super