Class Brakeman::Commandline
In: lib/brakeman/commandline.rb
Parent: Object

Implements handling of running Brakeman from the command line.

Methods

Public Class methods

Check for the latest version.

If the latest version is newer, quit with a message.

Runs a comparison report based on the options provided.

Handle options that exit without generating a report.

Parse ARGV-style array of options.

Exits if options are invalid.

Returns an option hash and the app_path.

Exits with the given exit code and prints out the message, if given.

Override this method for different behavior.

Runs a regular report based on the options provided.

Actually run Brakeman.

Returns a Tracker object.

Run either a comparison or regular report based on options provided.

Sets interrupt handler to gracefully handle Ctrl+C

Modifies options, including setting the app_path if none is given in the options hash.

Main method to run Brakeman from the command line.

If no options are provided, ARGV will be parsed and used instead. Otherwise, the options are expected to be a Hash like the one returned after ARGV is parsed.

[Validate]