Sha256: f3af7a0838e74631f953f8539b04be6be5e0f49288d160fdb676692f77701fae

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

require 'solr_wrapper/version'
require 'solr_wrapper/instance'

module SolrWrapper
  def self.default_solr_version
    "5.2.1"
  end

  def self.default_instance(options = {})
    @default_instance ||= SolrWrapper::Instance.new options
  end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solr_wrapper-0.1.0 lib/solr_wrapper.rb