Class: Dependabot::Bundler::UpdateChecker::ForceUpdater

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
SharedBundlerHelpers
Defined in:
lib/dependabot/bundler/update_checker/force_updater.rb

Constant Summary

Constants included from SharedBundlerHelpers

SharedBundlerHelpers::GIT_REF_REGEX, SharedBundlerHelpers::GIT_REGEX, SharedBundlerHelpers::PATH_REGEX, SharedBundlerHelpers::RETRYABLE_ERRORS, SharedBundlerHelpers::RETRYABLE_PRIVATE_REGISTRY_ERRORS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SharedBundlerHelpers

#base_directory, #handle_bundler_errors, #in_a_native_bundler_context, #inaccessible_git_dependencies, #jfrog_source, #private_registry_credentials, #retryable_error?

Constructor Details

#initialize(dependency:, dependency_files:, credentials:, target_version:, requirements_update_strategy:, options:, repo_contents_path: nil, update_multiple_dependencies: true) ⇒ ForceUpdater



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 36

def initialize(
  dependency:,
  dependency_files:,
  credentials:,
  target_version:,
  requirements_update_strategy:,
  options:,
  repo_contents_path: nil,
  update_multiple_dependencies: true
)
  @dependency                   = dependency
  @dependency_files             = dependency_files
  @repo_contents_path           = repo_contents_path
  @credentials                  = credentials
  @target_version               = target_version
  @requirements_update_strategy = requirements_update_strategy
  @update_multiple_dependencies = update_multiple_dependencies
  @options                      = options

  @updated_dependencies         = T.let(nil, T.nilable(T::Array[Dependabot::Dependency]))
  @original_dependencies        = T.let(nil, T.nilable(T::Array[Dependabot::Dependency]))
  @bundler_version              = T.let(nil, T.nilable(String))
end

Instance Attribute Details

#credentialsObject (readonly)

Returns the value of attribute credentials.



73
74
75
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 73

def credentials
  @credentials
end

#dependency_filesObject (readonly)

Returns the value of attribute dependency_files.



67
68
69
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 67

def dependency_files
  @dependency_files
end

#optionsObject (readonly)

Returns the value of attribute options.



76
77
78
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 76

def options
  @options
end

#repo_contents_pathObject (readonly)

Returns the value of attribute repo_contents_path.



70
71
72
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 70

def repo_contents_path
  @repo_contents_path
end

Instance Method Details

#updated_dependenciesObject



61
62
63
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 61

def updated_dependencies
  @updated_dependencies ||= force_update
end