Class: Arachni::State::Audit
- Extended by:
- Forwardable
- Defined in:
- lib/arachni/state/audit.rb
Overview
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}
Class Method Summary collapse
Instance Method Summary collapse
- #dump(directory) ⇒ Object
-
#initialize ⇒ Audit
constructor
A new instance of Audit.
- #statistics ⇒ Object
Constructor Details
Class Method Details
Instance Method Details
#dump(directory) ⇒ Object
40 41 42 43 44 |
# File 'lib/arachni/state/audit.rb', line 40 def dump( directory ) FileUtils.mkdir_p( directory ) IO.binwrite( "#{directory}/set", Marshal.dump( self ) ) end |
#statistics ⇒ Object
30 31 32 33 34 |
# File 'lib/arachni/state/audit.rb', line 30 def statistics { total: size } end |