Class: QualysTasks
- Inherits:
-
Thor
- Object
- Thor
- QualysTasks
- Defined in:
- lib/tasks/thorfile.rb
Instance Method Summary collapse
Instance Method Details
#upload(file_path) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/tasks/thorfile.rb', line 7 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::Qualys::Vuln::Importer.new() importer.import(file: file_path) end |
#upload_was(file_path) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/tasks/thorfile.rb', line 22 def upload_was(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::Qualys::WAS::Importer.new() importer.import(file: file_path) end |