Sha256: eada9fc4ffecd76bee18af5141445fe9af5f351548eab61a619214ba1c8003cf

Contents?: true

Size: 771 Bytes

Versions: 4

Compression:

Stored size: 771 Bytes

Contents

module Blacklight
  class SolrConf < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)
    
    argument :target_path, :type=>:string, :default => "."
    
    desc """ 
Generate solr config files solrconfig.xml and schema.xml
to directory you specify. (default current dir).  

Conf files generated are set up to work with out-of-the-box default 
blacklight.

You might want to put them into a solr setup, or you might just
want to look at them.   

"""
    
    # this generator used by test jetty generator too. 
    def solr_conf_files
      copy_file "solr_conf/schema.xml", File.expand_path("./schema.xml", target_path)
      copy_file "solr_conf/solrconfig.xml", File.expand_path("./solrconfig.xml", target_path)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-3.0.0pre6 lib/generators/blacklight/solr_conf_generator.rb
blacklight-3.0.0pre4 lib/generators/blacklight/solr_conf_generator.rb
blacklight-3.0.0pre3 lib/generators/blacklight/solr_conf_generator.rb
blacklight-3.0pre2 lib/generators/blacklight/solr_conf_generator.rb