lib/plugins/pluginmanager.rb in rsence-pre-2.1.0.10 vs lib/plugins/pluginmanager.rb in rsence-pre-2.1.0.11
- old
+ new
@@ -21,10 +21,15 @@
##
class PluginManager
attr_reader :transporter, :sessions
+ @@incr = 0
+ def incr
+ return @@incr
+ end
+
# Returns the registry data for plugin bundle +plugin_name+
def registry( plugin_name=false )
return @registry unless plugin_name
if @registry.has_key?( plugin_name )
return @registry[ plugin_name ]
@@ -608,9 +613,11 @@
end
call( name, :open )
puts "done!" if RSence.args[:verbose]
end
if not (to_load.empty? and to_unload.empty? and to_reload.empty?)
+ @@incr += 1
+ puts "@@incr: #{@@incr}"
puts "Plugin bundles:"
puts " loaded: #{to_load.join(', ')}" unless to_load.empty?
puts " unloaded: #{to_unload.join(', ')}" unless to_unload.empty?
puts " reloaded: #{to_reload.join(', ')}" unless to_reload.empty?
puts " opened: #{to_open.join(', ')}" unless to_open.empty?