Class: RubocopTodoCorrector::Commands::Bundle

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop_todo_corrector/commands/bundle.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rubocop_configuration_path:, gemfile_lock_path:, temporary_gemfile_path:) ⇒ Bundle

Returns a new instance of Bundle.



23
24
25
26
27
28
29
30
31
# File 'lib/rubocop_todo_corrector/commands/bundle.rb', line 23

def initialize(
  rubocop_configuration_path:,
  gemfile_lock_path:,
  temporary_gemfile_path:
)
  @rubocop_configuration_path = rubocop_configuration_path
  @gemfile_lock_path = gemfile_lock_path
  @temporary_gemfile_path = temporary_gemfile_path
end

Class Method Details

.call(rubocop_configuration_path:, gemfile_lock_path:, temporary_gemfile_path:) ⇒ Object

Parameters:

  • rubocop_configuration_path (String)
  • gemfile_lock_path (String)
  • temporary_gemfile_path (String)


10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rubocop_todo_corrector/commands/bundle.rb', line 10

def call(
  rubocop_configuration_path:,
  gemfile_lock_path:,
  temporary_gemfile_path:
)
  new(
    rubocop_configuration_path:,
    gemfile_lock_path:,
    temporary_gemfile_path:
  ).call
end

Instance Method Details

#callObject



33
34
35
36
37
38
# File 'lib/rubocop_todo_corrector/commands/bundle.rb', line 33

def call
  BundleInstaller.call(
    gem_specifications:,
    temporary_gemfile_path: @temporary_gemfile_path
  )
end