Sha256: a2a94617d077d3920e647cf290758e75a3e42c1c1178d1ff1497dc731932e331

Contents?: true

Size: 1.14 KB

Versions: 5

Compression:

Stored size: 1.14 KB

Contents

=begin
                  Arachni
  Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>

  This is free software; you can copy and distribute and modify
  this program under the term of the GPL v2.0 License
  (See LICENSE file for details)

=end

module Arachni

require Options.instance.dir['lib'] + 'plugin/manager'

module RPC
module XML
module Server
module Plugin

#
# We need to extend the original Manager and redeclare its inherited methods
# which are required over XMLRPC.
#
# @author: Tasos "Zapotek" Laskos
#                                      <tasos.laskos@gmail.com>
#                                      <zapotek@segfault.gr>
# @version: 0.1.1
#
class Manager < ::Arachni::Plugin::Manager

    # make these inherited methods visible again
    private :available
    public  :available

    def initialize( framework )
        super( framework )

        @plugin_opts = {}
    end

    def load( plugins )

        @plugin_opts.merge!( plugins )
        super( plugins.keys )
    end

    def create( name )
        self[name].new( @framework, prep_opts( name, self[name], @plugin_opts[name] ) )
    end


end

end
end
end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.3 lib/rpc/xml/server/plugin/manager.rb
arachni-0.2.4 lib/rpc/xml/server/plugin/manager.rb
arachni-0.2.3 lib/rpc/xml/server/plugin/manager.rb
arachni-0.2.2.2 lib/rpc/xml/server/plugin/manager.rb
arachni-0.2.2.1 lib/rpc/xml/server/plugin/manager.rb