Class: ActiveFedora::Config::SolrGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ActiveFedora::Config::SolrGenerator
- Defined in:
- lib/generators/active_fedora/config/solr/solr_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate ⇒ Object
7 8 9 10 11 |
# File 'lib/generators/active_fedora/config/solr/solr_generator.rb', line 7 def generate # Overwrite the configuration files that Blacklight has installed copy_file 'solr.yml', 'config/solr.yml', force: true directory 'solr', 'solr', force: true end |
#solr_wrapper_config ⇒ Object
13 14 15 16 17 |
# File 'lib/generators/active_fedora/config/solr/solr_generator.rb', line 13 def solr_wrapper_config # Overwrite the configuration files that Blacklight has installed copy_file '.solr_wrapper.yml', force: true copy_file 'solr_wrapper_test.yml', 'config/solr_wrapper_test.yml' end |