Sha256: 268089160531341fb535349b8e75c8ee95ff9c0aab7bc82732d5053000dc50ab
Contents?: true
Size: 1.49 KB
Versions: 2
Compression:
Stored size: 1.49 KB
Contents
=begin Copyright 2010-2017 Sarosys LLC <http://www.sarosys.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.5.1 | lib/arachni/reporter/options.rb |
arachni-1.5 | lib/arachni/reporter/options.rb |