class Arachni::RPC::Server::Plugin::Manager
We need to extend the original Manager
and redeclare its inherited methods which are required over RPC
.
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Public Instance Methods
load( plugins )
click to toggle source
make these inherited methods visible again
Calls superclass method
Arachni::Component::Manager#load
# File lib/arachni/rpc/server/plugin/manager.rb, line 29 def load( plugins ) if plugins.is_a?( Array ) h = {} plugins.each { |p| h[p] = @framework.options.plugins[p] || {} } plugins = h end plugins.each do |plugin, opts| prepare_options( plugin, self[plugin], opts ) end @framework.options.plugins.merge!( plugins ) super( plugins.keys ) end
merge_results( results )
click to toggle source
Merges the plug-in results of multiple instances by delegating to {Data::Plugins#merge_results}.
# File lib/arachni/rpc/server/plugin/manager.rb, line 46 def merge_results( results ) Data.plugins.merge_results self, results end