diff --git a/CHANGELOG.md b/CHANGELOG.md index 5e8bcbf..e3f0226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +vX.XX.X (Month 2024) + - Update thor task names for consistency + v4.13.0 (July 2024) - No changes diff --git a/lib/dradis/plugins/qualys/asset/importer.rb b/lib/dradis/plugins/qualys/asset/importer.rb index 9839868..0926fe9 100644 --- a/lib/dradis/plugins/qualys/asset/importer.rb +++ b/lib/dradis/plugins/qualys/asset/importer.rb @@ -48,6 +48,7 @@ def import(params={}) process_node(xml_node) end + logger.info { 'Qualys Asset file successfully imported' } true end diff --git a/lib/dradis/plugins/qualys/vuln/importer.rb b/lib/dradis/plugins/qualys/vuln/importer.rb index 6c1fe88..97f2995 100644 --- a/lib/dradis/plugins/qualys/vuln/importer.rb +++ b/lib/dradis/plugins/qualys/vuln/importer.rb @@ -43,6 +43,7 @@ def import(params={}) process_ip(xml_host) end + logger.info { 'Qualys Vuln file successfully imported' } return true end diff --git a/lib/dradis/plugins/qualys/was/importer.rb b/lib/dradis/plugins/qualys/was/importer.rb index ec4b31a..0f819a9 100644 --- a/lib/dradis/plugins/qualys/was/importer.rb +++ b/lib/dradis/plugins/qualys/was/importer.rb @@ -61,6 +61,7 @@ def import(params = {}) process_evidence(xml_vulnerability) end + logger.info { 'Qualys WAS file successfully imported' } true end diff --git a/lib/tasks/thorfile.rb b/lib/tasks/thorfile.rb index dd86f68..2b733c8 100644 --- a/lib/tasks/thorfile.rb +++ b/lib/tasks/thorfile.rb @@ -1,10 +1,10 @@ class QualysTasks < Thor include Rails.application.config.dradis.thor_helper_module - namespace "dradis:plugins:qualys" + namespace "dradis:plugins:qualys:upload" - desc "upload FILE", "upload Qualys XML results" - def upload(file_path) + desc "vuln FILE", "upload Qualys Vuln XML results" + def vuln(file_path) require 'config/environment' unless File.exists?(file_path) @@ -18,8 +18,8 @@ def upload(file_path) importer.import(file: file_path) end - desc "upload_was FILE", "upload Qualys WAS XML results" - def upload_was(file_path) + desc "was FILE", "upload Qualys WAS XML results" + def was(file_path) require 'config/environment' unless File.exists?(file_path)