Sha256: 5463c7ac20f72c338280a399802ac231ea21328f4b376e117e7a23a49fe5341e
Contents?: true
Size: 1012 Bytes
Versions: 4
Compression:
Stored size: 1012 Bytes
Contents
require "elasticsearch/api" require "elasticsearch/xpack/version" Dir[ File.expand_path('../xpack/api/actions/**/*.rb', __FILE__) ].each { |f| require f } Dir[ File.expand_path('../xpack/api/namespace/**/*.rb', __FILE__) ].each { |f| require f } module Elasticsearch module XPack module API def self.included(base) Elasticsearch::XPack::API.constants.reject {|c| c == :Client }.each do |m| base.__send__ :include, Elasticsearch::XPack::API.const_get(m) end end class Client include Elasticsearch::API::Common::Client, Elasticsearch::API::Common::Client::Base include Elasticsearch::XPack::API end end end end Elasticsearch::API::COMMON_PARAMS.push :job_id, :datafeed_id, :filter_id, :snapshot_id, :category_id module Elasticsearch module Transport class Client def xpack @xpack_client ||= Elasticsearch::XPack::API::Client.new(self) end end end end if defined?(Elasticsearch::Transport::Client)
Version data entries
4 entries across 4 versions & 1 rubygems