class CMSScanner::ProgressBarNullOutput
Adds the feature to log message sent to log
So they can be retrieved at some point, like after a password attack with a JSON output which won't display the progressbar but still call log
for errors etc
Public Instance Methods
log(string = nil)
click to toggle source
Override of parent method @return [ Array<String> ] return the logs when no string provided
# File lib/cms_scanner/progressbar_null_output.rb, line 17 def log(string = nil) return logs if string.nil? logs << string unless logs.include?(string) end
logs()
click to toggle source
@retutn [ Array<String> ]
# File lib/cms_scanner/progressbar_null_output.rb, line 11 def logs @logs ||= [] end