Module: Dependabot::FileParsers

Extended by:
T::Sig
Defined in:
lib/dependabot/file_parsers.rb,
lib/dependabot/file_parsers/base.rb,
lib/dependabot/file_parsers/base/dependency_set.rb

Defined Under Namespace

Classes: Base

Class Method Summary collapse

Class Method Details

.for_package_manager(package_manager) ⇒ Object



14
15
16
17
18
19
# File 'lib/dependabot/file_parsers.rb', line 14

def self.for_package_manager(package_manager)
  file_parser = @file_parsers[package_manager]
  return file_parser if file_parser

  raise "Unsupported package_manager #{package_manager}"
end

.register(package_manager, file_parser) ⇒ Object



22
23
24
# File 'lib/dependabot/file_parsers.rb', line 22

def self.register(package_manager, file_parser)
  @file_parsers[package_manager] = file_parser
end