Class: Arachni::State::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/arachni/state/options.rb

Overview

Author:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.load(directory) ⇒ Object



28
29
30
31
# File 'lib/arachni/state/options.rb', line 28

def self.load( directory )
    Arachni::Options.load( "#{directory}/options" )
    new
end

Instance Method Details

#clearObject



33
34
# File 'lib/arachni/state/options.rb', line 33

def clear
end

#dump(directory) ⇒ Object



23
24
25
26
# File 'lib/arachni/state/options.rb', line 23

def dump( directory )
    FileUtils.mkdir_p( directory )
    Arachni::Options.save( "#{directory}/options" )
end

#statisticsObject



15
16
17
18
19
20
21
# File 'lib/arachni/state/options.rb', line 15

def statistics
    {
        url:     Arachni::Options.url,
        checks:  Arachni::Options.checks,
        plugins: Arachni::Options.plugins.keys
    }
end