module Arachni::Reporter::Options

Provides some common options for the reports.

@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Public Instance Methods

outfile( extension = '', description = 'Where to save the report.' ) click to toggle source

Returns a string option named ‘outfile`.

Default value is:

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

@param [String] extension Extension for the outfile. @param [String] description Description of the option.

@return [Arachni::OptString]

# 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