Sha256: bd368ca416dcb0a0b0b5af2b8a0bf0f0158983c4e66e4da2c2a2446a0f25d19f

Contents?: true

Size: 470 Bytes

Versions: 5

Compression:

Stored size: 470 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_operation'

module Esse
  module CLI
    class Index::Close < Index::BaseOperation
      def run
        validate_options!
        indices.each do |index|
          index.elasticsearch.close!(**options)
        end
      end

      private

      def options
        @options.slice(*@options.keys - CLI_IGNORE_OPTS)
      end

      def validate_options!
        validate_indices_option!
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
esse-0.2.2 lib/esse/cli/index/close.rb
esse-0.2.0 lib/esse/cli/index/close.rb
esse-0.1.3 lib/esse/cli/index/close.rb
esse-0.1.2 lib/esse/cli/index/close.rb
esse-0.1.1 lib/esse/cli/index/close.rb