Sha256: 180e5c38a100f690a1542cec0586f937b3c45134e0d8fe7cd6f36d205c7b5d62

Contents?: true

Size: 1.09 KB

Versions: 9

Compression:

Stored size: 1.09 KB

Contents

require 'solr_wrapper/version'
require 'solr_wrapper/configuration'
require 'solr_wrapper/settings'
require 'solr_wrapper/checksum_validator'
require 'solr_wrapper/downloader'
require 'solr_wrapper/instance'
require 'solr_wrapper/client'
require 'solr_wrapper/runner'
require 'solr_wrapper/popen_runner'
require 'solr_wrapper/popen4_runner'

module SolrWrapper
  def self.default_solr_version
    'latest'
  end

  def self.default_solr_port
    '8983'
  end

  def self.default_instance_options
    @default_instance_options ||= {
      port: SolrWrapper.default_solr_port,
      version: SolrWrapper.default_solr_version
    }
  end

  def self.default_instance_options=(options)
    @default_instance_options = options
  end

  def self.default_instance(options = {})
    @default_instance ||= instance(default_instance_options)
  end

  def self.instance(options = {})
    SolrWrapper::Instance.new(options)
  end

  ##
  # Ensures a Solr service is running before executing the block
  def self.wrap(options = {}, &block)
    instance(options).wrap &block
  end

  class SolrWrapperError < StandardError; end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
solr_wrapper-3.1.2 lib/solr_wrapper.rb
solr_wrapper-3.1.1 lib/solr_wrapper.rb
solr_wrapper-3.1.0 lib/solr_wrapper.rb
solr_wrapper-3.0.2 lib/solr_wrapper.rb
solr_wrapper-3.0.1 lib/solr_wrapper.rb
solr_wrapper-3.0.0 lib/solr_wrapper.rb
solr_wrapper-2.2.0 lib/solr_wrapper.rb
solr_wrapper-2.1.0 lib/solr_wrapper.rb
solr_wrapper-2.0.0 lib/solr_wrapper.rb