Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Full and Simple formats into separate Importers #73

Merged
merged 6 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v4.14.0 (Month 2024)
- Separate general importer into Full & Simple importers

v4.13.0 (July 2024)
- No changes

Expand Down
3 changes: 2 additions & 1 deletion lib/dradis/plugins/nexpose.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Nexpose

require 'dradis/plugins/nexpose/engine'
require 'dradis/plugins/nexpose/field_processor'
require 'dradis/plugins/nexpose/importer'
require 'dradis/plugins/nexpose/full/importer'
require 'dradis/plugins/nexpose/mapping'
require 'dradis/plugins/nexpose/simple/importer'
require 'dradis/plugins/nexpose/version'
12 changes: 12 additions & 0 deletions lib/dradis/plugins/nexpose/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,17 @@ class Engine < ::Rails::Engine
include ::Dradis::Plugins::Base
description 'Processes Nexpose XML format'
provides :upload

# Because this plugin provides two export modules, we have to overwrite
# the default .uploaders() method.
#
# See:
# Dradis::Plugins::Upload::Base in dradis-plugins
def self.uploaders
[
Dradis::Plugins::Nexpose::Full,
Dradis::Plugins::Nexpose::Simple
]
end
end
end
163 changes: 0 additions & 163 deletions lib/dradis/plugins/nexpose/formats/full.rb

This file was deleted.

76 changes: 0 additions & 76 deletions lib/dradis/plugins/nexpose/formats/simple.rb

This file was deleted.

Loading