Class: Dependabot::GitSubmodules::FileFetcher
- Inherits:
-
Object
- Object
- Dependabot::GitSubmodules::FileFetcher
- Defined in:
- lib/dependabot/linguist/file_fetchers/git_submodules.rb
Instance Method Summary collapse
Instance Method Details
#fetch_files ⇒ Object
51 52 53 54 |
# File 'lib/dependabot/linguist/file_fetchers/git_submodules.rb', line 51 def fetch_files raise(Dependabot::DependencyFileNotFound, Pathname.new(File.join(directory, ".gitmodules")).cleanpath.to_path) if gitmodules_file.nil? [gitmodules_file] end |
#gitmodules_file ⇒ Object
56 57 58 |
# File 'lib/dependabot/linguist/file_fetchers/git_submodules.rb', line 56 def gitmodules_file @gitmodules_file ||= fetch_file_if_present(".gitmodules") end |