Class: Dependabot::FileUpdaters::Base

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
Defined in:
lib/dependabot/file_updaters/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Base.



41
42
43
44
45
46
47
48
49
# File 'lib/dependabot/file_updaters/base.rb', line 41

def initialize(dependencies:, dependency_files:, credentials:, repo_contents_path: nil, 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.



27
28
29
# File 'lib/dependabot/file_updaters/base.rb', line 27

def credentials
  @credentials
end

#dependenciesObject (readonly)

Returns the value of attribute dependencies.



18
19
20
# File 'lib/dependabot/file_updaters/base.rb', line 18

def dependencies
  @dependencies
end

#dependency_filesObject (readonly)

Returns the value of attribute dependency_files.



21
22
23
# File 'lib/dependabot/file_updaters/base.rb', line 21

def dependency_files
  @dependency_files
end

#optionsObject (readonly)

Returns the value of attribute options.



30
31
32
# File 'lib/dependabot/file_updaters/base.rb', line 30

def options
  @options
end

#repo_contents_pathObject (readonly)

Returns the value of attribute repo_contents_path.



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

def repo_contents_path
  @repo_contents_path
end

Instance Method Details

#noticesObject



57
58
59
# File 'lib/dependabot/file_updaters/base.rb', line 57

def notices
  []
end

#updated_dependency_filesObject

Raises:

  • (NotImplementedError)


52
53
54
# File 'lib/dependabot/file_updaters/base.rb', line 52

def updated_dependency_files
  raise NotImplementedError
end