Module: Arachni::Report::Options
- Extended by:
- Options
- Includes:
- Component::Options
- Included in:
- Options
- Defined in:
- lib/arachni/report/base.rb
Overview
Provides some common options for the reports.
Instance Method Summary collapse
-
#outfile(ext = '', desc = 'Where to save the report.') ⇒ Arachni::OptString
Returns a string option named ‘outfile’.
- #skip_responses ⇒ Object
Instance Method Details
#outfile(ext = '', desc = 'Where to save the report.') ⇒ Arachni::OptString
Returns a string option named ‘outfile’.
Default value is:
year-month-day hour.minute.second +timezone.extension
40 41 42 43 |
# File 'lib/arachni/report/base.rb', line 40 def outfile( ext = '', desc = 'Where to save the report.' ) Options::String.new( 'outfile', [ false, desc, Time.now.to_s.gsub( ':', '.' ) + ext ] ) end |
#skip_responses ⇒ Object
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/arachni/report/base.rb', line 45 def skip_responses Options::Bool.new( 'skip_responses', [ false, "Don't include the bodies of the HTTP " + "responses of the issues in the report" + " -- will lead to a greatly decreased report file-size.", false ] ) end |