Module: Arachni::Reporter::Options
- Extended by:
- Options
- Includes:
- Component::Options
- Included in:
- Options
- Defined in:
- lib/arachni/reporter/options.rb
Overview
Provides some common options for the reports.
Instance Method Summary collapse
-
#outfile(extension = '', description = 'Where to save the report.') ⇒ Arachni::OptString
Returns a string option named
outfile
.
Instance Method Details
#outfile(extension = '', description = 'Where to save the report.') ⇒ Arachni::OptString
Returns a string option named outfile
.
Default value is: year-month-day hour.minute.second +timezone.extension
28 29 30 31 32 33 |
# File 'lib/arachni/reporter/options.rb', line 28 def outfile( extension = '', description = 'Where to save the report.' ) Options::String.new( :outfile, description: description, default: Time.now.to_s.gsub( ':', '_' ) + extension ) end |