Module: Dependabot::FileParsers

Defined in:
lib/dependabot/file_parsers.rb,
lib/dependabot/file_parsers/base.rb,
lib/dependabot/file_parsers/go/dep.rb,
lib/dependabot/file_parsers/elixir/hex.rb,
lib/dependabot/file_parsers/go/modules.rb,
lib/dependabot/file_parsers/java/maven.rb,
lib/dependabot/file_parsers/python/pip.rb,
lib/dependabot/file_parsers/rust/cargo.rb,
lib/dependabot/file_parsers/java/gradle.rb,
lib/dependabot/file_parsers/dotnet/nuget.rb,
lib/dependabot/file_parsers/php/composer.rb,
lib/dependabot/file_parsers/ruby/bundler.rb,
lib/dependabot/file_parsers/docker/docker.rb,
lib/dependabot/file_parsers/git/submodules.rb,
lib/dependabot/file_parsers/elm/elm_package.rb,
lib/dependabot/file_parsers/base/dependency_set.rb,
lib/dependabot/file_parsers/go/modules/go_mod_parser.rb,
lib/dependabot/file_parsers/java_script/npm_and_yarn.rb,
lib/dependabot/file_parsers/ruby/bundler/file_preparer.rb,
lib/dependabot/file_parsers/python/pip/setup_file_parser.rb,
lib/dependabot/file_parsers/ruby/bundler/gemfile_checker.rb,
lib/dependabot/file_parsers/java/maven/repositories_finder.rb,
lib/dependabot/file_parsers/python/pip/poetry_files_parser.rb,
lib/dependabot/file_parsers/java/gradle/repositories_finder.rb,
lib/dependabot/file_parsers/python/pip/pipfile_files_parser.rb,
lib/dependabot/file_parsers/dotnet/nuget/project_file_parser.rb,
lib/dependabot/file_parsers/java/maven/property_value_finder.rb,
lib/dependabot/file_parsers/java/gradle/property_value_finder.rb,
lib/dependabot/file_parsers/dotnet/nuget/property_value_finder.rb,
lib/dependabot/file_parsers/dotnet/nuget/packages_config_parser.rb

Defined Under Namespace

Modules: Docker, Dotnet, Elixir, Elm, Git, Go, Java, JavaScript, Php, Python, Ruby, Rust Classes: Base

Class Method Summary collapse

Class Method Details

.for_package_manager(package_manager) ⇒ Object



37
38
39
40
41
42
# File 'lib/dependabot/file_parsers.rb', line 37

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



44
45
46
# File 'lib/dependabot/file_parsers.rb', line 44

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