Sha256: 4a2211aa8c8f7180078b2d91adc17dbed4fa28bdd3dbf65b05479a26ff9c9755
Contents?: true
Size: 1.5 KB
Versions: 6
Compression:
Stored size: 1.5 KB
Contents
=begin Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end module Arachni module Reporter # Provides some common options for the reports. # # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> module Options include Component::Options # 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] def outfile( extension = '', description = 'Where to save the report.' ) Options::String.new( :outfile, description: description, default: Time.now.to_s.gsub( ':', '_' ) + extension ) end def skip_responses Options::Bool.new( :skip_responses, description: "Don't include the bodies of the HTTP " + 'responses of the issues in the report' + ' -- will lead to a greatly decreased report file-size.', default: false ) end extend self end end end
Version data entries
6 entries across 6 versions & 1 rubygems