lib/ej/commands.rb in ej-0.1.10 vs lib/ej/commands.rb in ej-0.1.11

- old
+ new

@@ -4,10 +4,12 @@ module Ej class Commands < Thor class_option :index, aliases: '-i', type: :string, default: '_all', desc: 'index' class_option :host, aliases: '-h', type: :string, default: DEFAULT_HOST, desc: 'host' + class_option :user, aliases: '-u', type: :string, default: nil, desc: 'user' + class_option :password, aliases: '--pass', type: :string, default: nil, desc: 'password' class_option :debug, aliases: '-d', type: :boolean, default: false, desc: 'debug mode' map '-s' => :search map '-f' => :facet map '-c' => :count @@ -66,16 +68,18 @@ option :source, type: :string, aliases: '--source', required: true, desc: 'source host' option :dest, type: :string, aliases: '--dest', required: true, desc: 'dest host' option :query, type: :string, aliases: '-q', default: nil, desc: 'query' option :per, type: :numeric, default: nil, desc: 'per' option :scroll, type: :string, default: "1m", desc: 'scroll' + option :dest_index, type: :string, desc: 'dest index' def copy @core.copy( options[:source], options[:dest], options[:query], options[:per], - options[:scroll] + options[:scroll], + options[:dest_index] ) end desc 'dump', 'dump index' option :query, type: :string, aliases: '-q', default: nil, desc: 'query'