Sha256: aea7d6d0ccda25edbda36ebdee17ab9cb242b94e1c404d8aa3985a6317a478b7

Contents?: true

Size: 1019 Bytes

Versions: 30

Compression:

Stored size: 1019 Bytes

Contents

# frozen_string_literal: true

require "dependabot/file_fetchers/ruby/bundler"
require "dependabot/file_fetchers/java_script/npm_and_yarn"
require "dependabot/file_fetchers/php/composer"
require "dependabot/file_fetchers/elixir/hex"
require "dependabot/file_fetchers/go/dep"
require "dependabot/file_fetchers/go/modules"

module Dependabot
  module FileFetchers
    @file_fetchers = {
      "bundler" => FileFetchers::Ruby::Bundler,
      "npm_and_yarn" => FileFetchers::JavaScript::NpmAndYarn,
      "composer" => FileFetchers::Php::Composer,
      "hex" => FileFetchers::Elixir::Hex,
      "dep" => FileFetchers::Go::Dep,
      "go_modules" => FileFetchers::Go::Modules
    }

    def self.for_package_manager(package_manager)
      file_fetcher = @file_fetchers[package_manager]
      return file_fetcher if file_fetcher

      raise "Unsupported package_manager #{package_manager}"
    end

    def self.register(package_manager, file_fetcher)
      @file_fetchers[package_manager] = file_fetcher
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
dependabot-core-0.86.25 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.24 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.23 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.22 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.21 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.20 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.19 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.18 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.17 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.16 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.15 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.14 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.13 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.12 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.11 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.10 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.9 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.8 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.7 lib/dependabot/file_fetchers.rb
dependabot-core-0.86.6 lib/dependabot/file_fetchers.rb