lib/esse/cli/index/import.rb in esse-0.2.0 vs lib/esse/cli/index/import.rb in esse-0.2.2

- old
+ new

@@ -6,17 +6,21 @@ module CLI class Index::Import < Index::BaseOperation def run validate_options! indices.each do |index| - index.elasticsearch.import!(**options) + if (repo = @options[:repo]) + index.elasticsearch.import!(repo, **options) + else + index.elasticsearch.import!(**options) + end end end private def options - @options.slice(*@options.keys - CLI_IGNORE_OPTS) + @options.slice(*@options.keys - CLI_IGNORE_OPTS - [:repo]) end def validate_options! validate_indices_option! end