Sha256: 261f53dd9ec034324cc1868e9cbf5a07a5842e9c4ad85695c0964ca5be036876

Contents?: true

Size: 551 Bytes

Versions: 1

Compression:

Stored size: 551 Bytes

Contents

# encoding: UTF-8

module Esearch
  class Command
    # Base class for cluster commands
    class Cluster < self

      # Command for accessing health
      class Health < self
        include Concord.new(:context, :options)

        PRESENTER = Presenter::Cluster::Health

      private

        # Return request
        #
        # @return [Request]
        #
        # @api private
        #
        def request
          Request.get('/_cluster/health', {}, options)
        end

      end # Health

    end # Cluster
  end # Command
end # Esearch

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
esearch-0.2.2 lib/esearch/command/cluster.rb