Class: Dependabot::FileParsers::Base

Inherits:
Object
  • Object
show all
Extended by:
T::Helpers, T::Sig
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

Instance Method Summary collapse

Constructor Details

#initialize(dependency_files:, source:, repo_contents_path: nil, credentials: [], reject_external_code: false, options: {}) ⇒ Base

Returns a new instance of Base.



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/dependabot/file_parsers/base.rb', line 42

def initialize(dependency_files:, source:, repo_contents_path: nil,
               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 = options

  check_required_files
end

Instance Attribute Details

#credentialsObject (readonly)

Returns the value of attribute credentials.



23
24
25
# File 'lib/dependabot/file_parsers/base.rb', line 23

def credentials
  @credentials
end

#dependency_filesObject (readonly)

Returns the value of attribute dependency_files.



17
18
19
# File 'lib/dependabot/file_parsers/base.rb', line 17

def dependency_files
  @dependency_files
end

#optionsObject (readonly)

Returns the value of attribute options.



29
30
31
# File 'lib/dependabot/file_parsers/base.rb', line 29

def options
  @options
end

#repo_contents_pathObject (readonly)

Returns the value of attribute repo_contents_path.



20
21
22
# File 'lib/dependabot/file_parsers/base.rb', line 20

def repo_contents_path
  @repo_contents_path
end

#sourceObject (readonly)

Returns the value of attribute source.



26
27
28
# File 'lib/dependabot/file_parsers/base.rb', line 26

def source
  @source
end

Instance Method Details

#package_managerObject



58
59
60
# File 'lib/dependabot/file_parsers/base.rb', line 58

def package_manager
  nil
end

#parseObject



55
# File 'lib/dependabot/file_parsers/base.rb', line 55

def parse; end