From e273c5ef231ccde031990cc1aacd073065c4027d Mon Sep 17 00:00:00 2001 From: dsantosmerino Date: Mon, 26 Jul 2021 13:45:17 +0200 Subject: [PATCH] Replicate #765 --- lib/tasks/chewy.rake | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/tasks/chewy.rake b/lib/tasks/chewy.rake index bae5a61bf..aac392bd4 100644 --- a/lib/tasks/chewy.rake +++ b/lib/tasks/chewy.rake @@ -23,7 +23,7 @@ end namespace :chewy do desc 'Destroys, recreates and imports data for the specified indexes or all of them' task reset: :environment do |_task, args| - Chewy::RakeHelper.reset(parse_classes(args.extras)) + Chewy::RakeHelper.reset(**parse_classes(args.extras)) end desc 'Resets data for the specified indexes or all of them only if the index specification is changed' @@ -34,12 +34,12 @@ namespace :chewy do desc 'Updates data for the specified indexes/types or all of them' task update: :environment do |_task, args| - Chewy::RakeHelper.update(parse_classes(args.extras)) + Chewy::RakeHelper.update(**parse_classes(args.extras)) end desc 'Synchronizes data for the specified indexes/types or all of them' task sync: :environment do |_task, args| - Chewy::RakeHelper.sync(parse_classes(args.extras)) + Chewy::RakeHelper.sync(**parse_classes(args.extras)) end desc 'Resets all the indexes with the specification changed and synchronizes the rest of them' @@ -52,7 +52,7 @@ namespace :chewy do namespace :parallel do desc 'Parallel version of `rake chewy:reset`' task reset: :environment do |_task, args| - Chewy::RakeHelper.reset(parse_parallel_args(args.extras)) + Chewy::RakeHelper.reset(**parse_parallel_args(args.extras)) end desc 'Parallel version of `rake chewy:upgrade`' @@ -64,12 +64,12 @@ namespace :chewy do desc 'Parallel version of `rake chewy:update`' task update: :environment do |_task, args| - Chewy::RakeHelper.update(parse_parallel_args(args.extras)) + Chewy::RakeHelper.update(**parse_parallel_args(args.extras)) end desc 'Parallel version of `rake chewy:sync`' task sync: :environment do |_task, args| - Chewy::RakeHelper.sync(parse_parallel_args(args.extras)) + Chewy::RakeHelper.sync(**parse_parallel_args(args.extras)) end desc 'Parallel version of `rake chewy:deploy`' @@ -84,12 +84,12 @@ namespace :chewy do namespace :journal do desc 'Applies changes that were done after the specified time for the specified indexes/types or all of them' task apply: :environment do |_task, args| - Chewy::RakeHelper.journal_apply(parse_journal_args(args.extras)) + Chewy::RakeHelper.journal_apply(**parse_journal_args(args.extras)) end desc 'Removes journal records created before the specified timestamp for the specified indexes/types or all of them' task clean: :environment do |_task, args| - Chewy::RakeHelper.journal_clean(parse_journal_args(args.extras)) + Chewy::RakeHelper.journal_clean(**parse_journal_args(args.extras)) end end