Sha256: 778919de1f11a1145ba5f312c4a52ac4f0db591bbb9e8eb77c463e2d636f57dc

Contents?: true

Size: 517 Bytes

Versions: 30

Compression:

Stored size: 517 Bytes

Contents

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

  namespace "dradis:plugins:nessus"

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

end

Version data entries

30 entries across 30 versions & 1 rubygems

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