Sha256: 594af98604683e866c7ea2f973912eba3d05801b5d44aa89ec08e39de01496a8
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
require 'rails/generators' class Sufia::FulltextGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) desc """ This generator makes the following changes to your application: 1. Copies solrconfig.xml into solr_conf/conf/ 2. Reconfigures jetty """ def banner say_status("info", "GENERATING SUFIA FULL-TEXT", :blue) end # Copy Sufia's solrconfig into the dir from which the jetty:config task pulls # Sufia's solrconfig includes full-text extraction def copy_solr_config copy_file 'config/solrconfig.xml', 'solr_conf/conf/solrconfig.xml', force: true end # Copy config, schema, and jars into jetty dir if it exists def reconfigure_jetty rake "curation_concerns:jetty:config" if File.directory?('jetty') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-7.0.0.beta1 | lib/generators/sufia/fulltext_generator.rb |