Sha256: 0594de34b9b960a0b3dcb88f3e0affe4d060fbc7288fe7919be98c9cda203923

Contents?: true

Size: 593 Bytes

Versions: 11

Compression:

Stored size: 593 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
      # Overwrite the configuration files that Blacklight has installed
      copy_file '.solr_wrapper.yml', force: true
      copy_file 'solr_wrapper_test.yml', 'config/solr_wrapper_test.yml'
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
active-fedora-12.2.4 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-12.2.3 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-12.2.2 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-12.2.1 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-12.0.3 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-12.1.1 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-12.1.0 lib/generators/active_fedora/config/solr/solr_generator.rb
valkyrie_active_fedora-0.0.2 lib/generators/valkyrie_active_fedora/config/solr/solr_generator.rb
valkyrie_active_fedora-0.0.1 lib/generators/valkyrie_active_fedora/config/solr/solr_generator.rb
active-fedora-12.0.2 lib/generators/active_fedora/config/solr/solr_generator.rb
active-fedora-12.0.1 lib/generators/active_fedora/config/solr/solr_generator.rb