Sha256: a0ed4edf63c4e4e469aaeb43c75eb35bbb3bcc4830b2ac5e9fce36920b356d0e

Contents?: true

Size: 604 Bytes

Versions: 10

Compression:

Stored size: 604 Bytes

Contents

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

  namespace "dradis:plugins:coreimpact"

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

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