class BrakemanTasks

Public Instance Methods

upload(file_path) click to toggle source
# File lib/tasks/thorfile.rb, line 9
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