Class: Esse::CLI::Index::Import

Inherits:
Index::BaseOperation
  • Object
show all
Defined in:
lib/esse/cli/index/import.rb

Instance Method Summary collapse

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/esse/cli/index/import.rb', line 8

def run
  validate_options!
  indices.each do |index|
    if (repo = @options[:repo])
      index.import(repo, **options)
    else
      index.import(**options)
    end
  end
end