Module: Dependabot::FileUpdaters
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/file_updaters.rb,
lib/dependabot/file_updaters/base.rb,
lib/dependabot/file_updaters/vendor_updater.rb,
lib/dependabot/file_updaters/artifact_updater.rb
Defined Under Namespace
Classes: ArtifactUpdater, Base, VendorUpdater
Class Method Summary
collapse
Class Method Details
.for_package_manager(package_manager) ⇒ Object
14
15
16
17
18
19
|
# File 'lib/dependabot/file_updaters.rb', line 14
def self.for_package_manager(package_manager)
file_updater = @file_updaters[package_manager]
return file_updater if file_updater
raise "Unsupported package_manager #{package_manager}"
end
|
.register(package_manager, file_updater) ⇒ Object
22
23
24
|
# File 'lib/dependabot/file_updaters.rb', line 22
def self.register(package_manager, file_updater)
@file_updaters[package_manager] = file_updater
end
|