Sha256: 684a176eb35fbf9198d8a25527e40e042809872ef46cdd63cb4f115439c07765

Contents?: true

Size: 413 Bytes

Versions: 3

Compression:

Stored size: 413 Bytes

Contents

require 'fcrepo_wrapper/version'
require 'fcrepo_wrapper/instance'

module FcrepoWrapper
  def self.default_fcrepo_version
    '4.5.0'
  end

  def self.default_instance(options = {})
    @default_instance ||= FcrepoWrapper::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

3 entries across 3 versions & 1 rubygems

Version Path
fcrepo_wrapper-0.1.2 lib/fcrepo_wrapper.rb
fcrepo_wrapper-0.1.1 lib/fcrepo_wrapper.rb
fcrepo_wrapper-0.1.0 lib/fcrepo_wrapper.rb