Sha256: 91d9d058e9429efa0be2c0be1451210c48cf9056d326db70213def24026e8817

Contents?: true

Size: 518 Bytes

Versions: 31

Compression:

Stored size: 518 Bytes

Contents

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

  namespace "dradis:plugins:netsparker"

  desc "upload FILE", "upload Netsparker XML results"
  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::Netsparker::Importer.new(task_options)
    importer.import(file: file_path)
  end

end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
dradis-netsparker-4.14.0 lib/tasks/thorfile.rb
dradis-netsparker-4.13.0 lib/tasks/thorfile.rb
dradis-netsparker-4.11.0 lib/tasks/thorfile.rb
dradis-netsparker-4.10.0 lib/tasks/thorfile.rb
dradis-netsparker-4.9.0 lib/tasks/thorfile.rb
dradis-netsparker-4.8.0 lib/tasks/thorfile.rb
dradis-netsparker-4.7.0 lib/tasks/thorfile.rb
dradis-netsparker-4.6.0 lib/tasks/thorfile.rb
dradis-netsparker-4.5.0 lib/tasks/thorfile.rb
dradis-netsparker-4.4.0 lib/tasks/thorfile.rb
dradis-netsparker-4.3.0 lib/tasks/thorfile.rb
dradis-netsparker-4.2.0 lib/tasks/thorfile.rb
dradis-netsparker-4.1.0 lib/tasks/thorfile.rb
dradis-netsparker-4.0.1 lib/tasks/thorfile.rb
dradis-netsparker-4.0.0 lib/tasks/thorfile.rb
dradis-netsparker-3.22.1 lib/tasks/thorfile.rb
dradis-netsparker-3.22.0 lib/tasks/thorfile.rb
dradis-netsparker-3.21.0 lib/tasks/thorfile.rb
dradis-netsparker-3.20.0 lib/tasks/thorfile.rb
dradis-netsparker-3.19.0 lib/tasks/thorfile.rb