Module: Dependabot::MetadataFinders
- Defined in:
- lib/dependabot/metadata_finders.rb,
lib/dependabot/metadata_finders/base.rb,
lib/dependabot/metadata_finders/ruby/bundler.rb,
lib/dependabot/metadata_finders/base/commits_finder.rb,
lib/dependabot/metadata_finders/base/release_finder.rb,
lib/dependabot/metadata_finders/base/changelog_finder.rb,
lib/dependabot/metadata_finders/base/changelog_pruner.rb,
lib/dependabot/metadata_finders/java_script/npm_and_yarn.rb
Defined Under Namespace
Modules: JavaScript, Ruby
Classes: Base
Class Method Summary
collapse
Class Method Details
.for_package_manager(package_manager) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/dependabot/metadata_finders.rb', line 13
def self.for_package_manager(package_manager)
metadata_finder = @metadata_finders[package_manager]
return metadata_finder if metadata_finder
raise "Unsupported package_manager #{package_manager}"
end
|
.register(package_manager, metadata_finder) ⇒ Object
20
21
22
|
# File 'lib/dependabot/metadata_finders.rb', line 20
def self.register(package_manager, metadata_finder)
@metadata_finders[package_manager] = metadata_finder
end
|