Module: Arachni::Report::Options

Extended by:
Options
Included in:
Options
Defined in:
lib/arachni/report/base.rb

Overview

Provides some common options for the reports

@author: Tasos "Zapotek" Laskos

<tasos.laskos@gmail.com>
<zapotek@segfault.gr>

@version: 0.1

Instance Method Summary (collapse)

Instance Method Details

- (Arachni::OptString) outfile(ext = '', desc = 'Where to save the report.')

Returns a string option named 'outfile'.

Default value is:

year-month-day hour.minute.second +timezone.extension

Parameters:

  • ext (String) (defaults to: '')

    extension for the outfile

  • desc (String) (defaults to: 'Where to save the report.')

    description of the option

Returns:



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