Sha256: 18b825a6c5c8c55d702dceb85a2bfce0599feca43d7be2f28f9c781c572066f5

Contents?: true

Size: 513 Bytes

Versions: 31

Compression:

Stored size: 513 Bytes

Contents

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

  namespace "dradis:plugins:ntospider"

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

Version data entries

31 entries across 31 versions & 1 rubygems

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