blob: c2bfbd27e41c83a3fbf21fc66186976f9f040d3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class ElasticsearchClient
def self.default
@default ||= Elasticsearch::Client.new host: ENV['ELASTICSEARCH_URL'] || 'localhost:9200'
end
private
def initialize(*)
raise 'Should not be initialiazed'
end
end
|