Sha256: 6b71a4df4fa47ce980a22fd4aa1df82a51151669e2914c4579c6cf5bc621c164
Contents?: true
Size: 711 Bytes
Versions: 3
Compression:
Stored size: 711 Bytes
Contents
module CMSScanner module Finders # Same Type Finders container # # This class is designed to handle same type results, such as enumeration of plugins, # themes etc. class SameTypeFinders < IndependentFinders # @param [ Hash ] opts # @option opts [ Symbol ] :mode :mixed, :passive or :aggressive # @option opts [ Boolean ] :sort Wether or not to sort the findings # # @return [ Findings ] def run(opts = {}) symbols_from_mode(opts[:mode]).each do |symbol| each do |finder| run_finder(finder, symbol, opts) end end findings.sort! if opts[:sort] filter_findings end end end end
Version data entries
3 entries across 3 versions & 1 rubygems