Class: Esse::CLI::Index::BaseOperation
- Inherits:
-
Object
- Object
- Esse::CLI::Index::BaseOperation
- Includes:
- Output
- Defined in:
- lib/esse/cli/index/base_operation.rb
Direct Known Subclasses
Close, Create, Delete, Import, Open, Reset, UpdateAliases, UpdateMapping, UpdateSettings
Instance Method Summary collapse
-
#initialize(indices:, **options) ⇒ BaseOperation
constructor
A new instance of BaseOperation.
- #run ⇒ Object abstract
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:, **) @indices = Array(indices) @options = end |
Instance Method Details
#run ⇒ Object
This method is abstract.
15 16 17 |
# File 'lib/esse/cli/index/base_operation.rb', line 15 def run raise NotImplementedError end |