Module: Dependabot::UpdateCheckers

Defined in:
lib/dependabot/update_checkers.rb,
lib/dependabot/update_checkers/base.rb,
lib/dependabot/update_checkers/version_filters.rb

Defined Under Namespace

Modules: VersionFilters Classes: Base

Class Method Summary collapse

Class Method Details

.for_package_manager(package_manager) ⇒ Object



8
9
10
11
12
13
# File 'lib/dependabot/update_checkers.rb', line 8

def self.for_package_manager(package_manager)
  update_checker = @update_checkers[package_manager]
  return update_checker if update_checker

  raise "Unsupported package_manager #{package_manager}"
end

.register(package_manager, update_checker) ⇒ Object



15
16
17
# File 'lib/dependabot/update_checkers.rb', line 15

def self.register(package_manager, update_checker)
  @update_checkers[package_manager] = update_checker
end