Sha256: 8ceb3418ef2875f921cbecf30e27264a2ab252690a4c3a102c8a01c5266ac8f9
Contents?: true
Size: 1.19 KB
Versions: 4
Compression:
Stored size: 1.19 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 # force color in console (used with jruby) def ansi=(bool) Dye.color = bool end def ansi Dye.color? end end end
Version data entries
4 entries across 4 versions & 1 rubygems