Sha256: 47d2a10699bac4cbc8c4294f5290bd24c04a30684a652c680de02c9d9d650d84
Contents?: true
Size: 1.26 KB
Versions: 5
Compression:
Stored size: 1.26 KB
Contents
=begin Arachni Copyright (c) 2010-2012 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> This is free software; you can copy and distribute and modify this program under the term of the GPL v2.0 License (See LICENSE file for details) =end module Arachni module Reports # # Converts the AuditStore to a Hash which it then dumps in Marshal format into a file. # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1 # class Marshal < Arachni::Report::Base def run print_line( ) print_status( 'Dumping audit results in \'' + @options['outfile'] + '\'.' ) File.open( @options['outfile'], 'w' ) { |f| f.write( ::Marshal::dump( @audit_store.to_h ) ) } print_status( 'Done!' ) end def self.info { :name => 'Marshal Report', :description => %q{Exports the audit results as a Marshal file.}, :author => 'Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>', :version => '0.1', :options => [ Arachni::Report::Options.outfile( '.marshal' ) ] } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
arachni-0.4.0.4 | reports/marshal.rb |
arachni-0.4.0.3 | reports/marshal.rb |
arachni-0.4.0.2 | reports/marshal.rb |
arachni-0.4.0.1 | reports/marshal.rb |
arachni-0.4 | reports/marshal.rb |