Class: Dependabot::Cargo::RegistryFetcher
- Inherits:
-
FileFetchers::Base
- Object
- FileFetchers::Base
- Dependabot::Cargo::RegistryFetcher
- Defined in:
- lib/dependabot/cargo/registry_fetcher.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.required_files_in?(filenames) ⇒ Boolean
10 11 12 |
# File 'lib/dependabot/cargo/registry_fetcher.rb', line 10 def self.required_files_in?(filenames) filenames.include?("config.json") end |
.required_files_message ⇒ Object
14 15 16 |
# File 'lib/dependabot/cargo/registry_fetcher.rb', line 14 def self. "Repo must contain a config.json" end |
Instance Method Details
#api ⇒ Object
22 23 24 |
# File 'lib/dependabot/cargo/registry_fetcher.rb', line 22 def api parsed_config_json["api"].chomp("/") end |
#dl ⇒ Object
18 19 20 |
# File 'lib/dependabot/cargo/registry_fetcher.rb', line 18 def dl parsed_config_json["dl"].chomp("/") end |