Class: Dependabot::FileUpdaters::Base
- Inherits:
-
Object
- Object
- Dependabot::FileUpdaters::Base
- Defined in:
- lib/dependabot/file_updaters/base.rb
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#dependency_files ⇒ Object
readonly
Returns the value of attribute dependency_files.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dependencies:, dependency_files:, credentials:) ⇒ Base
constructor
A new instance of Base.
- #updated_dependency_files ⇒ Object
Constructor Details
#initialize(dependencies:, dependency_files:, credentials:) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 18 |
# File 'lib/dependabot/file_updaters/base.rb', line 12 def initialize(dependencies:, dependency_files:, credentials:) @dependencies = dependencies @dependency_files = dependency_files @credentials = credentials check_required_files end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
6 7 8 |
# File 'lib/dependabot/file_updaters/base.rb', line 6 def credentials @credentials end |
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
6 7 8 |
# File 'lib/dependabot/file_updaters/base.rb', line 6 def dependencies @dependencies end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
6 7 8 |
# File 'lib/dependabot/file_updaters/base.rb', line 6 def dependency_files @dependency_files end |
Class Method Details
.updated_files_regex ⇒ Object
8 9 10 |
# File 'lib/dependabot/file_updaters/base.rb', line 8 def self.updated_files_regex raise NotImplementedError end |
Instance Method Details
#updated_dependency_files ⇒ Object
20 21 22 |
# File 'lib/dependabot/file_updaters/base.rb', line 20 def updated_dependency_files raise NotImplementedError end |