Sha256: 1db8fe9c87c5369261e6062009ff71699e5f01fa9d410cf6e88e601b99961194
Contents?: true
Size: 642 Bytes
Versions: 31
Compression:
Stored size: 642 Bytes
Contents
class BrakemanTasks < Thor include Rails.application.config.dradis.thor_helper_module namespace "dradis:plugins:brakeman" desc "upload FILE", "upload Brakeman results in JSON format" long_desc "This plugin expect a JSON file generated by Brakeman using: -f "\ "jason -o results.json" def upload(file_path) require 'config/environment' unless File.exists?(file_path) $stderr.puts "** the file [#{file_path}] does not exist" exit(-1) end detect_and_set_project_scope importer = Dradis::Plugins::Brakeman::Importer.new(task_options) importer.import(file: file_path) end end
Version data entries
31 entries across 31 versions & 1 rubygems