Sha256: db91113bf24ece951c68fe7c41b34c484ae15b1b653ae1d25906694e56741d66
Contents?: true
Size: 1.25 KB
Versions: 6
Compression:
Stored size: 1.25 KB
Contents
module Elastics Configuration = OpenStruct.new :result_extenders => [ Result::Document, Result::Search, Result::MultiGet, Result::Bulk ], :logger => Logger.new(STDERR), :variables => Vars.new( :index => nil, :type => nil, :params => {}, :no_pruning => [] ), :config_file => './config/elastics.yml', :elastics_dir => './elastics', :http_client => HttpClients::Loader.new_http_client # shorter alias Conf = Configuration Conf.instance_eval do def configure yield self end def indices @indices ||= Indices.new(config_file) end # force color in console (used with jruby) def ansi=(bool) Dye.color = bool end def ansi Dye.color? end end end
Version data entries
6 entries across 6 versions & 1 rubygems