Sha256: a0dabf8c281ef95b9b9f7dd6cd2256d1d24ccc57771baa858b10a4efbe9d8e15

Contents?: true

Size: 453 Bytes

Versions: 14

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

require_relative 'base_operation'

module Esse
  module CLI
    class Index::Open < Index::BaseOperation
      def run
        validate_options!
        indices.each do |index|
          index.open(**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

14 entries across 14 versions & 1 rubygems

Version Path
esse-0.4.0.rc4 lib/esse/cli/index/open.rb
esse-0.4.0.rc3 lib/esse/cli/index/open.rb
esse-0.4.0.rc2 lib/esse/cli/index/open.rb
esse-0.4.0.rc1 lib/esse/cli/index/open.rb
esse-0.3.5 lib/esse/cli/index/open.rb
esse-0.3.4 lib/esse/cli/index/open.rb
esse-0.3.3 lib/esse/cli/index/open.rb
esse-0.3.2 lib/esse/cli/index/open.rb
esse-0.3.1 lib/esse/cli/index/open.rb
esse-0.3.0 lib/esse/cli/index/open.rb
esse-0.2.6 lib/esse/cli/index/open.rb
esse-0.2.5 lib/esse/cli/index/open.rb
esse-0.2.4 lib/esse/cli/index/open.rb
esse-0.2.3 lib/esse/cli/index/open.rb