Module: Arachni::Framework::Parts::Scope
- Included in:
- Arachni::Framework
- Defined in:
- lib/arachni/framework/parts/scope.rb
Overview
Provides scope helpers.
Instance Method Summary collapse
-
#accepts_more_pages? ⇒ Bool
true
if the framework can process more pages,false
is scope limits have been reached. - #crawl? ⇒ Boolean
-
#page_limit_reached? ⇒ Bool
true
if the OptionGroups::Scope#page_limit has been reached,false
otherwise.
Instance Method Details
#accepts_more_pages? ⇒ Bool
Returns true
if the framework can process more pages, false
is scope limits
have been reached.
32 33 34 |
# File 'lib/arachni/framework/parts/scope.rb', line 32 def accepts_more_pages? crawl? && !page_limit_reached? end |
#crawl? ⇒ Boolean
25 26 27 |
# File 'lib/arachni/framework/parts/scope.rb', line 25 def crawl? .scope.crawl? && .scope.restrict_paths.empty? end |
#page_limit_reached? ⇒ Bool
Returns true
if the OptionGroups::Scope#page_limit has been reached,
false
otherwise.
21 22 23 |
# File 'lib/arachni/framework/parts/scope.rb', line 21 def page_limit_reached? .scope.page_limit_reached?( sitemap.size ) end |