Sha256: 02bd5c8eb36a6b84a5b2d9a453cbb8efc4a65af17df96b63124c0846569f9886
Contents?: true
Size: 1.13 KB
Versions: 6
Compression:
Stored size: 1.13 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 # Converts the Report to a Hash which it then dumps in YAML format into a file. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> # @version 0.2 class Arachni::Reporters::YAML < Arachni::Reporter::Base def run print_line print_status "Dumping audit results in #{outfile}." File.open( options[:outfile], 'w' ) do |f| f.write( report.to_hash.to_yaml ) end print_status 'Done!' end def self.info { name: 'YAML', description: %q{Exports the audit results as a YAML (.yaml) file.}, content_type: 'application/x-yaml', author: 'Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>', version: '0.2', options: [ Options.outfile( '.yaml' ) ] } end end
Version data entries
6 entries across 6 versions & 1 rubygems