Sha256: 6c74c98d84002283ceaee77e3ad25a1259a6f09a427baceeb2b29e0c1a8c9e94

Contents?: true

Size: 449 Bytes

Versions: 7

Compression:

Stored size: 449 Bytes

Contents

require 'rails/generators'

module ActiveFedora
  class Config::SolrGenerator < Rails::Generators::Base
    source_root ::File.expand_path('../templates', __FILE__)

    def generate
      # Overwrite the configuration files that Blacklight has installed
      copy_file 'solr.yml', 'config/solr.yml', force: true
      directory 'solr', 'solr'
    end

    def solr_wrapper_config
      copy_file '.solr_wrapper', '.solr_wrapper'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
active-fedora-9.12.0 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-9.11.0 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-9.10.4 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-9.10.3 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-9.10.2 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-9.10.1 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-9.10.0 lib/generators/active_fedora/config/solr/solr_generator.rb