Sha256: 1f64567425eef2805bb3e3d39231ed99607fc01fab0669e23612ba40aa95c8ab
Contents?: true
Size: 578 Bytes
Versions: 14
Compression:
Stored size: 578 Bytes
Contents
# frozen_string_literal: true require_relative 'base_operation' module Esse module CLI class Index::Import < Index::BaseOperation def run validate_options! indices.each do |index| if (repo = @options[:repo]) index.import(repo, **options) else index.import(**options) end end end private def options @options.slice(*@options.keys - CLI_IGNORE_OPTS - [:repo]) end def validate_options! validate_indices_option! end end end end
Version data entries
14 entries across 14 versions & 1 rubygems