Sha256: 684bac7519c04f65130bbb19b90174a49a726c9028999a11c967a47276954458

Contents?: true

Size: 943 Bytes

Versions: 3

Compression:

Stored size: 943 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

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::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

3 entries across 3 versions & 1 rubygems

Version Path
arachni-1.0.2 spec/support/helpers/resets.rb
arachni-1.0.1 spec/support/helpers/resets.rb
arachni-1.0 spec/support/helpers/resets.rb