Sha256: 9b8ee983dd74f5e1590a114da18904ee026675cdb1ced4886d21ba55b28c4da8

Contents?: true

Size: 686 Bytes

Versions: 45

Compression:

Stored size: 686 Bytes

Contents

#!/usr/bin/env ruby

require 'optparse'
require File.join(File.dirname(__FILE__), '..', 'lib', 'sunspot', 'solr', 'installer')

home = ARGV.select { |arg| arg !~ /^-/ }.last || File.join(Dir.pwd, "solr")
options = {}

OptionParser.new do |opts|
  opts.banner = "Usage: sunspot-installer [options] [solr-home]"
  opts.on('-v', '--[no-]verbose', 'Run verbosely') do |v|
    options[:verbose] = v
  end
  opts.on('-f', '--[no-]force', 'Overwrite schema and solrconfig files with Sunspot default, instead of modifying them (recommended for new Solr installation)') do |f|
    options[:force] = f
  end
end.parse!

Sunspot::Solr::Installer.execute(home, options)
puts "Installed to #{home}"

Version data entries

45 entries across 45 versions & 10 rubygems

Version Path
cb_sunspot_solr-2.0.0.pre.3 bin/sunspot-installer
cb_sunspot_solr-2.0.0.pre2 bin/sunspot-installer
mrcsparker-sunspot_solr-1.3.0 bin/sunspot-installer
sunspot_solr-1.3.0 bin/sunspot-installer
sunspot_solr-1.3.0.rc6 bin/sunspot-installer