class RuboCopConfigUpdater::CLI::Command

Public Class Methods

new(options) click to toggle source
# File lib/rubocop_config_updater/cli/command.rb, line 6
def initialize(options)
  @options = options
end

Public Instance Methods

fix_errors(stderr) click to toggle source
# File lib/rubocop_config_updater/cli/command.rb, line 14
def fix_errors(stderr)
  class_for_errors(stderr).new(@options, stderr).run
end
run(name) click to toggle source
# File lib/rubocop_config_updater/cli/command.rb, line 10
def run(name)
  class_for(name).new(@options).run
end

Private Instance Methods

class_for(name) click to toggle source
# File lib/rubocop_config_updater/cli/command.rb, line 20
def class_for(name)
  Base.by_command_name(name)
end
class_for_errors(stderr) click to toggle source
# File lib/rubocop_config_updater/cli/command.rb, line 24
def class_for_errors(stderr)
  Base.by_errors(stderr) || UnknownError
end