Skip to content

Commit

Permalink
Replicate toptal#765
Browse files Browse the repository at this point in the history
  • Loading branch information
dsantosmerino committed Jul 26, 2021
1 parent 4b259cb commit e273c5e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/tasks/chewy.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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`'
Expand All @@ -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`'
Expand All @@ -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

Expand Down

0 comments on commit e273c5e

Please sign in to comment.