Class: WPScan::Finders::ThemeVersion::Base
- Inherits:
-
Object
- Object
- WPScan::Finders::ThemeVersion::Base
- Includes:
- CMSScanner::Finders::UniqueFinder
- Defined in:
- app/finders/theme_version.rb
Overview
Theme Version Finder
Instance Method Summary collapse
-
#create_and_load_dynamic_versions_finders(theme) ⇒ Object
Create the dynamic version finders related to the theme and register them.
-
#initialize(theme) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(theme) ⇒ Base
Returns a new instance of Base.
14 15 16 17 18 19 20 |
# File 'app/finders/theme_version.rb', line 14 def initialize(theme) finders << ThemeVersion::Style.new(theme) << ThemeVersion::WooFrameworkMetaGenerator.new(theme) create_and_load_dynamic_versions_finders(theme) end |
Instance Method Details
#create_and_load_dynamic_versions_finders(theme) ⇒ Object
Create the dynamic version finders related to the theme and register them
25 26 27 28 29 |
# File 'app/finders/theme_version.rb', line 25 def create_and_load_dynamic_versions_finders(theme) DB::DynamicFinders::Theme.create_versions_finders(theme.slug).each do |finder| finders << finder.new(theme) end end |