Created
December 23, 2011 00:52
-
-
Save presidentbeef/1512567 to your computer and use it in GitHub Desktop.
Process routes with Brakeman::RoutesProcessor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$LOAD_PATH.unshift "/home/justin/work/brakeman/lib" | |
require 'brakeman' | |
require 'ruby_parser/ruby_parser' | |
require 'brakeman/tracker' | |
require 'brakeman/processors/route_processor' | |
tracker = Brakeman::Tracker.new | |
tracker.options[:rails3] = true | |
route_processor = Brakeman::RoutesProcessor.new tracker | |
route_processor.process_routes Ruby19Parser.new.parse(File.read ARGV[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment