Sha256: 8bf909e4087fd4f3c5bfd4b6b8df82bf521a7bc83d3fd40cf2e54bd982cb36d0
Contents?: true
Size: 626 Bytes
Versions: 5
Compression:
Stored size: 626 Bytes
Contents
begin require 'brakeman' namespace :bake do desc "Run Brakeman" task :brakeman, :output_files do |t, args| RakeNBake::AssistantBaker.log_step 'Running Brakeman' files = args[:output_files].split(' ') if args[:output_files] Brakeman.run :app_path => ".", :output_files => files, :print_report => true end end rescue LoadError tasks = %w[ brakeman ] namespace :bake do tasks.map(&:to_sym).each do |t| desc 'brakeman is not available (gem not installed)' task t do RakeNBake::AssistantBaker.log_missing_gem 'brakeman' abort end end end end
Version data entries
5 entries across 5 versions & 1 rubygems