Sha256: 4406c1c270feb464fcc29d034d59189842c69d3bde90c30ee2c4ca30216fcdb2
Contents?: true
Size: 982 Bytes
Versions: 2
Compression:
Stored size: 982 Bytes
Contents
=begin Copyright 2010-2017 Sarosys LLC <http://www.sarosys.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 module Arachni class Framework module Parts # Provides scope helpers. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> module Scope # @return [Bool] # `true` if the {OptionGroups::Scope#page_limit} has been reached, # `false` otherwise. def page_limit_reached? options.scope.page_limit_reached?( sitemap.size ) end def crawl? options.scope.crawl? && options.scope.restrict_paths.empty? end # @return [Bool] # `true` if the framework can process more pages, `false` is scope limits # have been reached. def accepts_more_pages? crawl? && !page_limit_reached? end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.5.1 | lib/arachni/framework/parts/scope.rb |
arachni-1.5 | lib/arachni/framework/parts/scope.rb |