Module: Relevance::Tarantula

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

#log(msg) ⇒ Object



23
24
25
# File 'lib/relevance/tarantula.rb', line 23

def log(msg)
  puts msg if verbose
end

#rails_rootObject



26
27
28
# File 'lib/relevance/tarantula.rb', line 26

def rails_root
  ::RAILS_ROOT
end

#tarantula_homeObject



20
21
22
# File 'lib/relevance/tarantula.rb', line 20

def tarantula_home
  File.expand_path(File.join(File.dirname(__FILE__), "../.."))
end

#verboseObject



29
30
31
# File 'lib/relevance/tarantula.rb', line 29

def verbose
  ENV["VERBOSE"]
end