Class: Dependabot::Devcontainers::FileParser::FeatureDependencyParser

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/devcontainers/file_parser/feature_dependency_parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(config_dependency_file:, repo_contents_path:, credentials:) ⇒ FeatureDependencyParser

Returns a new instance of FeatureDependencyParser.



26
27
28
29
30
# File 'lib/dependabot/devcontainers/file_parser/feature_dependency_parser.rb', line 26

def initialize(config_dependency_file:, repo_contents_path:, credentials:)
  @config_dependency_file = config_dependency_file
  @repo_contents_path = repo_contents_path
  @credentials = credentials
end

Instance Method Details

#parseObject



33
34
35
36
37
38
39
# File 'lib/dependabot/devcontainers/file_parser/feature_dependency_parser.rb', line 33

def parse
  SharedHelpers.in_a_temporary_repo_directory(base_dir, repo_contents_path) do
    SharedHelpers.with_git_configured(credentials: credentials) do
      parse_cli_json(evaluate_with_cli)
    end
  end
end