Class: Arachni::Plugin::Base Abstract
- Includes:
- Module::Output
- Defined in:
- lib/plugin/base.rb
Overview
Arachni::Plugin::Base class
An abstract class for the plugins.<br/> All plugins must extend this.
@author: Tasos “Zapotek” Laskos
<[email protected]>
<[email protected]>
@version: 0.1
Class Method Summary collapse
-
.info ⇒ Object
REQUIRED.
Instance Method Summary collapse
-
#clean_up ⇒ Object
OPTIONAL.
-
#initialize(framework, options) ⇒ Base
constructor
A new instance of Base.
-
#prepare ⇒ Object
OPTIONAL.
- #register_results(results) ⇒ Object
-
#run ⇒ Object
REQUIRED.
Methods included from Module::Output
#o_print_debug, #o_print_error, #o_print_info, #o_print_line, #o_print_ok, #o_print_status, #o_print_verbose, #print_debug, #print_error, #print_info, #print_line, #print_ok, #print_status, #print_verbose
Methods included from UI::Output
#buffer, #debug!, #debug?, #flush_buffer, #mute!, #muted?, #only_positives!, #only_positives?, #print_debug, #print_debug_backtrace, #print_debug_pp, #print_error, #print_error_backtrace, #print_info, #print_line, #print_ok, #print_status, #print_verbose, #reroute_to_file, #reroute_to_file?, #unmute!, #verbose!, #verbose?
Constructor Details
#initialize(framework, options) ⇒ Base
Returns a new instance of Base.
57 58 59 60 |
# File 'lib/plugin/base.rb', line 57 def initialize( framework, ) @framework = framework @options = end |
Class Method Details
.info ⇒ Object
REQUIRED
Do not ommit any of the info.
93 94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/plugin/base.rb', line 93 def self.info { :name => 'Abstract plugin class', :description => %q{Abstract plugin class.}, :author => 'Tasos "Zapotek" Laskos <[email protected]>', :version => '0.1', :options => [ # option name required? description default # Arachni::OptBool.new( 'print_framework', [ false, 'Do you want to print the framework?', false ] ), # Arachni::OptString.new( 'my_name_is', [ false, 'What\'s you name?', 'Tasos' ] ), ] } end |
Instance Method Details
#register_results(results) ⇒ Object
84 85 86 |
# File 'lib/plugin/base.rb', line 84 def register_results( results ) @framework.plugin_store( self, results ) end |