Module: Arachni::Report::Options
Overview
Provides some common options for the reports
@author: Tasos “Zapotek” Laskos
<[email protected]>
<[email protected]>
@version: 0.1
Instance Method Summary collapse
-
#outfile(ext = '', desc = 'Where to save the report.') ⇒ Arachni::OptString
Returns a string option named ‘outfile’.
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
36 37 38 39 |
# File 'lib/arachni/report/base.rb', line 36 def outfile( ext = '', desc = 'Where to save the report.' ) Arachni::OptString.new( 'outfile', [ false, desc, Time.now.to_s.gsub( ':', '.' ) + ext ] ) end |