提交 08cf0421 编写于 作者: D Deepak Kumar

Adding ability to pass multiple output files to the rake task as ['output.html output.tabs']

上级 3ccb215f
namespace :brakeman do
desc "Run Brakeman"
task :run, :output_file do |t, args|
task :run, :output_files do |t, args|
require 'brakeman'
Brakeman.run :app_path => ".", :output_files => [args[:output_file]], :print_report => true
files = args[:output_files].split(' ')
Brakeman.run :app_path => ".", :output_files => files, :print_report => true
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册