Class: Dependabot::Vcpkg::FileFetcher
- Inherits:
-
FileFetchers::Base
- Object
- FileFetchers::Base
- Dependabot::Vcpkg::FileFetcher
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/vcpkg/file_fetcher.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.required_files_in?(filenames) ⇒ Boolean
17 18 19 |
# File 'lib/dependabot/vcpkg/file_fetcher.rb', line 17 def self.required_files_in?(filenames) filenames.intersect?([VCPKG_JSON_FILENAME, VCPKG_CONFIGURATION_JSON_FILENAME]) end |
.required_files_message ⇒ Object
22 23 24 |
# File 'lib/dependabot/vcpkg/file_fetcher.rb', line 22 def self. "Repo must contain a vcpkg.json or vcpkg-configuration.json file." end |
Instance Method Details
#fetch_files ⇒ Object
27 28 29 |
# File 'lib/dependabot/vcpkg/file_fetcher.rb', line 27 def fetch_files [vcpkg_manifest, vcpkg_configuration].compact end |