Sha256: 8f778d875a7a8957a0de18ed8416cf15988e7a4ed7993afd294e9ec6e5688f83

Contents?: true

Size: 502 Bytes

Versions: 30

Compression:

Stored size: 502 Bytes

Contents

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

  namespace "dradis:plugins:nexpose"

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

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
dradis-nexpose-3.15.0 lib/tasks/thorfile.rb
dradis-nexpose-3.14.0 lib/tasks/thorfile.rb
dradis-nexpose-3.13.0 lib/tasks/thorfile.rb
dradis-nexpose-3.12.0 lib/tasks/thorfile.rb
dradis-nexpose-3.11.0 lib/tasks/thorfile.rb
dradis-nexpose-3.10.1 lib/tasks/thorfile.rb
dradis-nexpose-3.10.0 lib/tasks/thorfile.rb
dradis-nexpose-3.9.0 lib/tasks/thorfile.rb
dradis-nexpose-3.8.0 lib/tasks/thorfile.rb
dradis-nexpose-3.7.0 lib/tasks/thorfile.rb