Sha256: ab3618d3616838fd5e6bdce15189ce514f2cc075b5568b94eb9c62ae621c0c20

Contents?: true

Size: 988 Bytes

Versions: 6

Compression:

Stored size: 988 Bytes

Contents

=begin
    Copyright 2010-2015 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

def reset_options
    opts = Arachni::Options.instance
    opts.reset
    opts.rpc.server_address = '127.0.0.1'
    opts.browser_cluster.pool_size = 1

    opts.paths.plugins        = fixtures_path + 'plugins/'
    opts.paths.checks         = fixtures_path + 'checks/'
    opts.paths.fingerprinters = fixtures_path + 'fingerprinters/'
    opts.paths.logs           = spec_path + 'support/logs/'

    opts
end

def reset_all
    Arachni::UI::Output.reset_output_options
    Arachni::Framework.reset
    reset_options
    Arachni::HTTP::Client.reset
end

def killall
    instance_killall
    dispatcher_killall
    web_server_killall
    process_killall
    # process_kill_reactor
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 spec/support/helpers/resets.rb
arachni-1.3.1 spec/support/helpers/resets.rb
arachni-1.3 spec/support/helpers/resets.rb
arachni-1.2.1 spec/support/helpers/resets.rb
arachni-1.2 spec/support/helpers/resets.rb
arachni-1.1 spec/support/helpers/resets.rb