Skip to content

Commit

Permalink
#1 Support quiet option
Browse files Browse the repository at this point in the history
  • Loading branch information
oreoshake committed Dec 21, 2012
1 parent 7aeac11 commit d4f5693
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/guard/brakeman.rb
Expand Up @@ -29,8 +29,9 @@ def initialize(watchers = [], options = { })
:notifications => true,
:run_on_start => false,
:chatty => false,
:min_confidence => 1
}.update(options)
:min_confidence => 1,
:quiet => true
}.merge!(options)
end

# Gets called once when Guard starts.
Expand All @@ -40,6 +41,7 @@ def initialize(watchers = [], options = { })
def start
@scanner_opts = ::Brakeman::set_options({:app_path => '.'}.merge(@options))
@options.merge!(@scanner_opts)
puts @scanner_opts.inspect
@tracker = ::Brakeman::Scanner.new(@scanner_opts).process

if @options[:run_on_start]
Expand Down

0 comments on commit d4f5693

Please sign in to comment.