Class: CodeHunter::Brakeman

Inherits:
Object
  • Object
show all
Defined in:
lib/code_hunter/brakeman.rb,
lib/code_hunter/brakeman/invoker.rb,
lib/code_hunter/brakeman/summarizer.rb

Defined Under Namespace

Classes: Invoker, Summarizer

Constant Summary collapse

TEMPORAL_PATHNAME =
Pathname.new("#{Dir.tmpdir}/brakeman.html")

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Brakeman

Returns a new instance of Brakeman.



15
16
17
# File 'lib/code_hunter/brakeman.rb', line 15

def initialize(options = {})
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



10
11
12
# File 'lib/code_hunter/brakeman.rb', line 10

def options
  @options
end

Instance Method Details

#runObject



19
20
21
22
23
24
# File 'lib/code_hunter/brakeman.rb', line 19

def run
  invoke
  summarize
ensure
  clean
end