Module: Relevance::Tarantula
- Included in:
- Crawler, FormSubmission, HtmlReportHelper, HtmlReporter, IOReporter, InvalidHtmlHandler, Link, RailsIntegrationProxy, RailsIntegrationProxy, Result, TidyHandler
- Defined in:
- lib/relevance/tarantula.rb
Defined Under Namespace
Modules: HtmlReportHelper
Classes: Attack, AttackHandler, BasicAttack, Crawler, Form, FormSubmission, HtmlDocumentHandler, HtmlReporter, IOReporter, InvalidHtmlHandler, Link, LogGrabber, RailsIntegrationProxy, Response, Result, TidyHandler, Transform
Instance Method Summary
collapse
Instance Method Details
23
24
25
|
# File 'lib/relevance/tarantula.rb', line 23
def log(msg)
puts msg if verbose
end
|
#rails_root ⇒ Object
26
27
28
|
# File 'lib/relevance/tarantula.rb', line 26
def rails_root
::RAILS_ROOT
end
|
#tarantula_home ⇒ Object
20
21
22
|
# File 'lib/relevance/tarantula.rb', line 20
def tarantula_home
File.expand_path(File.join(File.dirname(__FILE__), "../.."))
end
|
29
30
31
|
# File 'lib/relevance/tarantula.rb', line 29
def verbose
ENV["VERBOSE"]
end
|