Sha256: 716105ef86d8985088e7fd406611f33d67bbf3c9a342ad733b27f6f0297d2411

Contents?: true

Size: 912 Bytes

Versions: 33

Compression:

Stored size: 912 Bytes

Contents

# frozen_string_literal: true

# RuboCop is a Ruby code style checking and code formatting tool.
#
# exe/rag addons/rubocop

self.local_template_path = File.dirname(__FILE__)

gac 'base rails 7 image created'

prepare_environment

add_controller('home', 'index')
route("root 'home#index'")

after_bundle do
  # There are linting errors in the controller that can be fixed manually with
  # rubocop -A --config .rubocop.yml

  force_copy

  copy_file 'app/controllers/home_controller.rb'            , 'app/controllers/home_controller.rb'
  copy_file 'app/views/home/index.html.erb'                 , 'app/views/home/index.html.erb'
  copy_file 'app/assets/images/cop-output.png'              , 'app/assets/images/cop-output.png'

  template  'app/views/layouts/application.html.erb'        , 'app/views/layouts/application.html.erb'

  # Cleanup the generated files
  run('rubocop -A --config .rubocop.yml')
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rails_app_generator-0.3.6 after_templates/addons/rubocop/_.rb
rails_app_generator-0.3.5 after_templates/addons/rubocop/_.rb
rails_app_generator-0.3.4 after_templates/addons/rubocop/_.rb
rails_app_generator-0.3.3 after_templates/addons/rubocop/_.rb
rails_app_generator-0.3.2 after_templates/addons/rubocop/_.rb
rails_app_generator-0.3.1 after_templates/addons/rubocop/_.rb
rails_app_generator-0.3.0 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.43 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.42 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.41 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.40 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.39 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.38 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.37 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.36 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.35 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.34 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.33 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.32 after_templates/addons/rubocop/_.rb
rails_app_generator-0.2.31 after_templates/addons/rubocop/_.rb