Sha256: 255010acf6302834b9487ac5ca3c47757ebfb082e6c222d942bbc5e02dc2e6b9
Contents?: true
Size: 997 Bytes
Versions: 7
Compression:
Stored size: 997 Bytes
Contents
=begin Copyright 2010-2014 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 class Data # Data for {Arachni::Session}. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class Session # @return [Hash] attr_reader :configuration def initialize @configuration = {} end def statistics {} end def dump( directory ) FileUtils.mkdir_p( directory ) IO.binwrite( "#{directory}/configuration", Marshal.dump( @configuration ) ) end def self.load( directory ) session = new session.configuration.merge! Marshal.load( IO.binread( "#{directory}/configuration" ) ) session end def clear @configuration.clear end end end end
Version data entries
7 entries across 7 versions & 1 rubygems