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

Update thor task naming for consistency #61

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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 @@
vX.XX.X (Month 2024)
- Update thor task names for consistency

v4.13.0 (July 2024)
- No changes

Expand Down
1 change: 1 addition & 0 deletions lib/dradis/plugins/qualys/asset/importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def import(params={})
process_node(xml_node)
end

logger.info { 'Qualys Asset file successfully imported' }
true
end

Expand Down
1 change: 1 addition & 0 deletions lib/dradis/plugins/qualys/vuln/importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def import(params={})
process_ip(xml_host)
end

logger.info { 'Qualys Vuln file successfully imported' }
return true
end

Expand Down
1 change: 1 addition & 0 deletions lib/dradis/plugins/qualys/was/importer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def import(params = {})
process_evidence(xml_vulnerability)
end

logger.info { 'Qualys WAS file successfully imported' }
true
end

Expand Down
10 changes: 5 additions & 5 deletions lib/tasks/thorfile.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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)
Expand Down