Sha256: 8d1d514313d7e43b222baecb770fbaf2c2a654bf79a597e0db070f27f42236a0

Contents?: true

Size: 547 Bytes

Versions: 1

Compression:

Stored size: 547 Bytes

Contents

require 'rails/generators'

module Blacklight
  class Solr5Generator < Rails::Generators::Base
    desc <<-EOF
      This generator makes the following changes to your application:
       1. Installs solr_wrapper into your application
       2. Adds rsolr to your Gemfile
    EOF

    def install_solrwrapper
      gem_group :development, :test do
        gem 'solr_wrapper', '>= 0.3'
      end

      append_to_file "Rakefile", "\nrequire 'solr_wrapper/rake_task'\n"
    end

    def add_rsolr_gem
      gem 'rsolr', '~> 1.0.6'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
blacklight-6.0.2 lib/generators/blacklight/solr5_generator.rb