Class: ActiveFedora::Config::SolrGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/active_fedora/config/solr/solr_generator.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



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'
end

#solr_wrapper_configObject



13
14
15
16
# File 'lib/generators/active_fedora/config/solr/solr_generator.rb', line 13

def solr_wrapper_config
  copy_file '.solr_wrapper', '.solr_wrapper'
  copy_file 'solr_wrapper_test.yml', 'config/solr_wrapper_test.yml'
end