Sha256: 5f5017f7dfe1ed0045abfabae16dab25d6672b06af700f9e49191ee8190d26cd
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 Bytes
Contents
# frozen_string_literal: true module ProxES module Helpers module ES def client @client ||= Elasticsearch::Client.new url: ENV['ELASTICSEARCH_URL'] end def cluster_health(level = 'cluster') client.cluster.health level: level end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
proxes-0.8.4 | lib/proxes/helpers/es.rb |
proxes-0.8.3 | lib/proxes/helpers/es.rb |