Class: RubocopRailsConfig::Generators::UpdateGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/rubocop_rails_config/update_generator.rb

Instance Method Summary collapse

Instance Method Details

#update_config_fileObject



11
12
13
14
15
16
17
# File 'lib/generators/rubocop_rails_config/update_generator.rb', line 11

def update_config_file
  if old_gem_name_used?
    gsub_file config_file_path, "rubocop-rails:", "rubocop-rails_config:"
  else
    puts "Your conifg is up-to-date. Nothing to update."
  end
end