Sha256: 3a0b2884da168022cfd6d3b21c5cd2c3e99189cfa554c41cf7686e9a2e2af6df
Contents?: true
Size: 664 Bytes
Versions: 14
Compression:
Stored size: 664 Bytes
Contents
# frozen_string_literal: true require_relative 'base_operation' module Esse module CLI class Index::UpdateAliases < Index::BaseOperation def run validate_options! indices.each do |index| index.update_aliases(**options) end end private def options @options.slice(*@options.keys - CLI_IGNORE_OPTS) end def validate_options! validate_indices_option! if @options[:suffix].nil? || @options[:suffix].empty? raise InvalidOption.new(<<~END) You must specify a suffix to update the aliases. END end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems