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

Inherits:
Object
  • Object
show all
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 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:, repo_contents_path: nil, credentials:, target_version:, requirements_update_strategy:, update_multiple_dependencies: true, options:) ⇒ ForceUpdater

Returns a new instance of ForceUpdater.



19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 19

def initialize(dependency:, dependency_files:, repo_contents_path: nil,
               credentials:, target_version:,
               requirements_update_strategy:,
               update_multiple_dependencies: true,
               options:)
  @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
end

Instance Method Details

#updated_dependenciesObject



34
35
36
# File 'lib/dependabot/bundler/update_checker/force_updater.rb', line 34

def updated_dependencies
  @updated_dependencies ||= force_update
end