Sha256: 1b575a557af316c3c63b244adbc24ce9f71e740fcfcf76758fbac69a9cdd0714

Contents?: true

Size: 648 Bytes

Versions: 3

Compression:

Stored size: 648 Bytes

Contents

require 'rails/generators'
require 'generators/geoblacklight/install_generator'
require 'geoblacklight'
require 'fileutils'

namespace :geoblacklight do
  desc 'Configures Solr for local jetty instance'
  task :configure_solr do
    root = Gem::Specification.find_by_name('geoblacklight').gem_dir rescue '.'
    [
      {
        src: "schema/solr/conf/schema.xml",
        file: 'schema.xml'
      },
      {
        src: "schema/solr/conf/solrconfig.xml",
        file: 'solrconfig.xml'
      }
    ].each do |item|
      FileUtils.cp File.join(root, item[:src]), "jetty/solr/blacklight-core/conf/#{item[:file]}", verbose: true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
geoblacklight-1.0.1 lib/tasks/configure_solr.rake
geoblacklight-1.0.0 lib/tasks/configure_solr.rake
geoblacklight-1.0.0.pre3 lib/tasks/configure_solr.rake