Sha256: c26b7a7df698d685fe5f956450d26f40b7d4352633364a6c678fe8da70893b3d

Contents?: true

Size: 593 Bytes

Versions: 9

Compression:

Stored size: 593 Bytes

Contents

class VeracodeTasks < Thor
  include Rails.application.config.dradis.thor_helper_module

  namespace 'dradis:plugins:veracode'

  desc      'upload FILE', 'upload Veracode results in XML format'
  long_desc 'This plugin expects a XML file generated by Veracode'
  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::Veracode::Importer.new(task_options)
    importer.import(file: file_path)
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dradis-veracode-4.14.0 lib/tasks/thorfile.rb
dradis-veracode-4.13.0 lib/tasks/thorfile.rb
dradis-veracode-4.11.0 lib/tasks/thorfile.rb
dradis-veracode-4.10.0 lib/tasks/thorfile.rb
dradis-veracode-4.9.0 lib/tasks/thorfile.rb
dradis-veracode-4.8.0 lib/tasks/thorfile.rb
dradis-veracode-4.7.0 lib/tasks/thorfile.rb
dradis-veracode-4.6.0 lib/tasks/thorfile.rb
dradis-veracode-4.5.0 lib/tasks/thorfile.rb