Sha256: 038850a8c6629f65cbf5fd1a4e772c7eb787c79e469c5c53301075c98874c25d
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
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 def security @security ||= xpack.security end def ml @ml ||= xpack.ml end end end end if defined?(Elasticsearch::Transport::Client)
Version data entries
4 entries across 4 versions & 1 rubygems