class ReportStdout
Public Instance Methods
file_extension()
click to toggle source
# File lib/dockscan/modules/report/stdout.rb, line 11 def file_extension return "-stdout.txt" end
format()
click to toggle source
# File lib/dockscan/modules/report/stdout.rb, line 7 def format return "stdout" end
info()
click to toggle source
# File lib/dockscan/modules/report/stdout.rb, line 3 def info return 'This plugin produces brief stdout reports' end
report(opts)
click to toggle source
# File lib/dockscan/modules/report/stdout.rb, line 15 def report(opts) output="" output << "Dockscan Report\n\n" issues = sortvulns 7.downto(3) do |sev| if issues.key?(sev) output << sev2word(sev) << "\n" issues[sev].each do |v| # output << k << ": " output << v.vuln.title << ": " output << v.vuln.solution # output << v.output output << "\n" end output << "\n" end end return output end