Class: Blacklight::Solr4Generator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/blacklight/solr4_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_rsolr_gemObject



27
28
29
# File 'lib/generators/blacklight/solr4_generator.rb', line 27

def add_rsolr_gem
  gem "rsolr".dup, '>= 1.0', '< 3'
end

#install_jettywrapperObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/generators/blacklight/solr4_generator.rb', line 16

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