Class: Dependabot::Julia::FileFetcher
- Inherits:
-
FileFetchers::Base
- Object
- FileFetchers::Base
- Dependabot::Julia::FileFetcher
- Defined in:
- lib/dependabot/julia/file_fetcher.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.required_files_in?(filenames) ⇒ Boolean
14 15 16 |
# File 'lib/dependabot/julia/file_fetcher.rb', line 14 def self.required_files_in?(filenames) filenames.any? { |name| name.match?(/^(Julia)?Project\.toml$/i) } end |
.required_files_message ⇒ Object
19 20 21 |
# File 'lib/dependabot/julia/file_fetcher.rb', line 19 def self. "Repo must contain a Project.toml or JuliaProject.toml file." end |
Instance Method Details
#fetch_files ⇒ Object
24 25 26 27 28 29 |
# File 'lib/dependabot/julia/file_fetcher.rb', line 24 def fetch_files # Clone the repository temporarily to let Julia helper identify the correct files SharedHelpers.in_a_temporary_repo_directory(directory, repo_contents_path) do |temp_dir| fetch_files_using_julia_helper(temp_dir) end end |