Class Brakeman::Scanner
In: lib/brakeman/scanner.rb
Parent: Object

Scans the Rails application.

Methods

Constants

RUBY_1_9 = RUBY_VERSION >= "1.9.0"

Attributes

options  [R] 

Public Class methods

Pass in path to the root of the Rails application

Public Instance methods

Set :rails3/:rails4 option if version was not determined from Gemfile

Process everything in the Rails application

Process config/environment.rb and config/gems.rb

Stores parsed information in tracker.config

Process all .rb files in controllers/

Adds processed controllers to tracker.controllers

Process Gemfile

Process an initializer

Process all the .rb files in config/initializers/

Adds parsed information to tracker.initializers

Process a library

Process all .rb in lib/

Adds parsed information to tracker.libs.

Process all the .rb files in models/

Adds the processed models to tracker.models

Process config/routes.rb

Adds parsed information to tracker.routes

Process all views and partials in views/

Adds processed views to tracker.views

Returns the Tracker generated from the scan

[Validate]