Sha256: 50b9f11177ec0d3681a1e55662fcd06121726d0dd63b9407ccb884600d518595
Contents?: true
Size: 912 Bytes
Versions: 8
Compression:
Stored size: 912 Bytes
Contents
# frozen_string_literal: true require 'rails/generators' module Blacklight class Solr4Generator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) class_option :jettywrapper, type: :boolean, default: false, desc: "Use jettywrapper to download and control Jetty" desc <<-EOS This generator makes the following changes to your application: 1. Installs jettywrapper into your application 2. Adds rsolr to your Gemfile EOS def install_jettywrapper return unless options[:jettywrapper] gem "jettywrapper".dup, ">= 2.0" copy_file "config/jetty.yml", "config/jetty.yml" append_to_file "Rakefile", "\nZIP_URL = \"https://github.com/projectblacklight/blacklight-jetty/archive/v4.10.4.zip\"\n" \ "require 'jettywrapper'\n" end def add_rsolr_gem gem "rsolr".dup, "~> 1.0" end end end
Version data entries
8 entries across 8 versions & 1 rubygems