Class: Warclight::Update
- Defined in:
- lib/generators/warclight/update_generator.rb
Overview
Warclight 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_custom_routes, #add_warclight_search_behavior, #assets, #include_warclight_solrdocument, #install_blacklight_range_limit, #modify_blacklight_yml
Instance Method Details
#create_blacklight_catalog ⇒ Object
14 15 16 |
# File 'lib/generators/warclight/update_generator.rb', line 14 def create_blacklight_catalog copy_file 'catalog_controller.rb', 'app/controllers/catalog_controller.rb' end |
#solr_config ⇒ Object
18 19 20 |
# File 'lib/generators/warclight/update_generator.rb', line 18 def solr_config directory '../../../../solr', 'solr' end |