Class: Esse::CLI::Index::BaseOperation

Inherits:
Object
  • Object
show all
Includes:
Output
Defined in:
lib/esse/cli/index/base_operation.rb

Instance Method Summary collapse

Methods included from Output

colorize, formatted_runtime, print_backtrace, print_error, print_message, runtime_padding

Constructor Details

#initialize(indices:, **options) ⇒ BaseOperation

Returns a new instance of BaseOperation.



8
9
10
11
# File 'lib/esse/cli/index/base_operation.rb', line 8

def initialize(indices:, **options)
  @indices = Array(indices)
  @options = options
end

Instance Method Details

#runObject

This method is abstract.

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/esse/cli/index/base_operation.rb', line 15

def run
  raise NotImplementedError
end