Class: Arclight::Update

Inherits:
Install
  • Object
show all
Defined in:
lib/generators/arclight/update_generator.rb

Overview

Arclight Update generator. This subclasses the Install generator, so this is intended to override behavior in the install generator that can allow the downstream application to choose if they want to take our changes or not and can choose to see a diff of our changes to help them decide.

Instance Method Summary collapse

Methods inherited from Install

#add_arclight_search_behavior, #add_custom_routes, #add_download_config, #add_repository_config, #copy_styles, #include_arclight_solrdocument, #inject_js, #install_blacklight_locale_picker, #install_blacklight_range_limit, #install_webpacker, #modify_blacklight_yml, #run_yarn

Instance Method Details

#create_blacklight_catalogObject



14
15
16
# File 'lib/generators/arclight/update_generator.rb', line 14

def create_blacklight_catalog
  copy_file 'catalog_controller.rb', 'app/controllers/catalog_controller.rb'
end

#solr_configObject



18
19
20
# File 'lib/generators/arclight/update_generator.rb', line 18

def solr_config
  directory '../../../../solr', 'solr'
end