class Arachni::State::Audit

Stores and provides access to the state of all audit operations performed by:

* {Check::Auditor}
    * {Check::Auditor.audited}
    * {Check::Auditor#audited}
    * {Check::Auditor#audited?}
* {Element::Capabilities::Auditable}

@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Public Class Methods

load( directory ) click to toggle source
# File lib/arachni/state/audit.rb, line 46
def self.load( directory )
    Marshal.load( IO.binread( "#{directory}/set" ) )
end
new() click to toggle source
# File lib/arachni/state/audit.rb, line 26
def initialize
    @collection = Support::LookUp::HashSet.new( hasher: :persistent_hash )
end

Public Instance Methods

dump( directory ) click to toggle source
# File lib/arachni/state/audit.rb, line 40
def dump( directory )
    FileUtils.mkdir_p( directory )

    IO.binwrite( "#{directory}/set", Marshal.dump( self ) )
end
statistics() click to toggle source
# File lib/arachni/state/audit.rb, line 30
def statistics
    {
        total: size
    }
end

Private Instance Methods

collection() click to toggle source
# File lib/arachni/state/audit.rb, line 52
def collection
    @collection
end