Sha256: 6178a30eb1dbcc1dec9aa0cc94d32078d827f4eb685336a020ce5b99256bcca8

Contents?: true

Size: 664 Bytes

Versions: 39

Compression:

Stored size: 664 Bytes

Contents

module CMSScanner
  module Finders
    # This class is designed to handle same type results, such as enumeration of plugins,
    # themes etc.
    class SameTypeFinders < BaseFinders
      # @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

39 entries across 39 versions & 1 rubygems

Version Path
cms_scanner-0.0.41.10 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.9 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.8 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.7 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.6 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.5 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.4 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.3 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.2 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.1 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.41.0 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.40.3 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.40.2 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.40.1 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.40 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.39.4 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.39.3 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.39.2 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.39.1 lib/cms_scanner/finders/same_type_finders.rb
cms_scanner-0.0.39.0 lib/cms_scanner/finders/same_type_finders.rb