Class: Dependabot::FileUpdaters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/dependabot/file_updaters/base.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dependencies:, dependency_files:, repo_contents_path: nil, credentials:, options: {}) ⇒ Base

Returns a new instance of Base.



14
15
16
17
18
19
20
21
22
23
# File 'lib/dependabot/file_updaters/base.rb', line 14

def initialize(dependencies:, dependency_files:, repo_contents_path: nil,
               credentials:, options: {})
  @dependencies = dependencies
  @dependency_files = dependency_files
  @repo_contents_path = repo_contents_path
  @credentials = credentials
  @options = options

  check_required_files
end

Instance Attribute Details

#credentialsObject (readonly)

Returns the value of attribute credentials.



7
8
9
# File 'lib/dependabot/file_updaters/base.rb', line 7

def credentials
  @credentials
end

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



7
8
9
# File 'lib/dependabot/file_updaters/base.rb', line 7

def dependencies
  @dependencies
end

#dependency_filesObject (readonly)

Returns the value of attribute dependency_files.



7
8
9
# File 'lib/dependabot/file_updaters/base.rb', line 7

def dependency_files
  @dependency_files
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/dependabot/file_updaters/base.rb', line 7

def options
  @options
end

#repo_contents_pathObject (readonly)

Returns the value of attribute repo_contents_path.



7
8
9
# File 'lib/dependabot/file_updaters/base.rb', line 7

def repo_contents_path
  @repo_contents_path
end

Class Method Details

.updated_files_regexObject

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/dependabot/file_updaters/base.rb', line 10

def self.updated_files_regex
  raise NotImplementedError
end

Instance Method Details

#updated_dependency_filesObject

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/dependabot/file_updaters/base.rb', line 25

def updated_dependency_files
  raise NotImplementedError
end