lib/tasks/thorfile.rb in dradis-ntospider-3.6.0 vs lib/tasks/thorfile.rb in dradis-ntospider-3.7.0

- old
+ new

@@ -5,21 +5,16 @@ desc "upload FILE", "upload NTOSpider XML results" def upload(file_path) require 'config/environment' - logger = Logger.new(STDOUT) - logger.level = Logger::DEBUG - 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::NTOSpider::Importer.new(logger: logger) + importer = Dradis::Plugins::NTOSpider::Importer.new(task_options) importer.import(file: file_path) - - logger.close end end