Class: Dependabot::UpdateCheckers::Ruby::Bundler::ForceUpdater

Inherits:
Object
  • Object
show all
Defined in:
lib/dependabot/update_checkers/ruby/bundler/force_updater.rb

Instance Method Summary collapse

Constructor Details

#initialize(dependency:, dependency_files:, credentials:, target_version:) ⇒ ForceUpdater

Returns a new instance of ForceUpdater.



19
20
21
22
23
24
25
# File 'lib/dependabot/update_checkers/ruby/bundler/force_updater.rb', line 19

def initialize(dependency:, dependency_files:, credentials:,
               target_version:)
  @dependency       = dependency
  @dependency_files = dependency_files
  @credentials      = credentials
  @target_version   = target_version
end

Instance Method Details

#updated_dependenciesObject



27
28
29
# File 'lib/dependabot/update_checkers/ruby/bundler/force_updater.rb', line 27

def updated_dependencies
  @updated_dependencies ||= force_update
end