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
Source
# 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
Override of parent method @return [ Array<String> ] return the logs when no string provided
Source
# File lib/cms_scanner/progressbar_null_output.rb, line 11 def logs @logs ||= [] end
@retutn [ Array<String> ]