Module: Arachni::Module::Output

Includes:
UI::Output
Included in:
HTTP, Auditor, Plugin::Base, Trainer
Defined in:
lib/arachni/module/output.rb

Overview

Provides output functionality to the modules via the UI::Output<br/> prepending the module name to the output message.

Author:

Instance Method Summary collapse

Methods included from UI::Output

#debug?, #debug_off, #debug_on, #disable_only_positives, #error_logfile, #flush_buffer, #log_error, #mute, #muted?, old_reset_output_options, #only_positives, #only_positives?, #print_debug_backtrace, #print_debug_pp, #print_error_backtrace, #reroute_to_file, #reroute_to_file?, reset_output_options, #set_buffer_cap, #set_error_logfile, #uncap_buffer, #unmute, #verbose, #verbose?

Instance Method Details

#fancy_nameObject



61
62
63
# File 'lib/arachni/module/output.rb', line 61

def fancy_name
    @fancy_name ||= self.class.info[:name]
end


33
34
35
# File 'lib/arachni/module/output.rb', line 33

def print_bad( str = '', out = $stdout )
    super( fancy_name + ": " + str )
end


49
50
51
# File 'lib/arachni/module/output.rb', line 49

def print_debug( str = '' )
    super( fancy_name + ": " + str ) if debug?
end


29
30
31
# File 'lib/arachni/module/output.rb', line 29

def print_error( str = '' )
    super( fancy_name + ": " + str )
end


41
42
43
# File 'lib/arachni/module/output.rb', line 41

def print_info( str = '' )
    super( fancy_name + ": " + str )
end


57
58
59
# File 'lib/arachni/module/output.rb', line 57

def print_line( str = '' )
    super( fancy_name + ": " + str )
end


45
46
47
# File 'lib/arachni/module/output.rb', line 45

def print_ok( str = '' )
    super( fancy_name + ": " + str )
end


37
38
39
# File 'lib/arachni/module/output.rb', line 37

def print_status( str = '' )
    super( fancy_name + ": " + str )
end


53
54
55
# File 'lib/arachni/module/output.rb', line 53

def print_verbose( str = '' )
    super( fancy_name + ": " + str )
end