Sha256: 7b419245d114985246046bda0c73e34d56315a13e3c7c49fef489fbe5b2a2b96
Contents?: true
Size: 821 Bytes
Versions: 29
Compression:
Stored size: 821 Bytes
Contents
# -*- encoding : utf-8 -*- require 'rails/generators' class Sufia::Models::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("warning", "GENERATING SUFIA FULL-TEXT", :yellow) 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 "sufia:jetty:config" if File.directory?('jetty') end end
Version data entries
29 entries across 29 versions & 2 rubygems