Class: Dependabot::FileParsers::Base
- Inherits:
-
Object
- Object
- Dependabot::FileParsers::Base
- Defined in:
- lib/dependabot/file_parsers/base.rb,
lib/dependabot/file_parsers/base/dependency_set.rb
Defined Under Namespace
Classes: DependencySet
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#dependency_files ⇒ Object
readonly
Returns the value of attribute dependency_files.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#repo_contents_path ⇒ Object
readonly
Returns the value of attribute repo_contents_path.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(dependency_files:, repo_contents_path: nil, source:, credentials: [], reject_external_code: false, options: {}) ⇒ Base
constructor
A new instance of Base.
- #parse ⇒ Object
Constructor Details
#initialize(dependency_files:, repo_contents_path: nil, source:, credentials: [], reject_external_code: false, options: {}) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/dependabot/file_parsers/base.rb', line 9 def initialize(dependency_files:, repo_contents_path: nil, source:, credentials: [], reject_external_code: false, options: {}) @dependency_files = dependency_files @repo_contents_path = repo_contents_path @credentials = credentials @source = source @reject_external_code = reject_external_code @options = check_required_files end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
7 8 9 |
# File 'lib/dependabot/file_parsers/base.rb', line 7 def credentials @credentials end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
7 8 9 |
# File 'lib/dependabot/file_parsers/base.rb', line 7 def dependency_files @dependency_files end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/dependabot/file_parsers/base.rb', line 7 def @options end |
#repo_contents_path ⇒ Object (readonly)
Returns the value of attribute repo_contents_path.
7 8 9 |
# File 'lib/dependabot/file_parsers/base.rb', line 7 def repo_contents_path @repo_contents_path end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
7 8 9 |
# File 'lib/dependabot/file_parsers/base.rb', line 7 def source @source end |
Instance Method Details
#parse ⇒ Object
21 22 23 |
# File 'lib/dependabot/file_parsers/base.rb', line 21 def parse raise NotImplementedError end |