Sha256: c81254b546f9ff94fcffe4255a594039e89c70df834e65fbca5b9e66b2d0ddc5
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'chewy/rake_helper' namespace :chewy do desc 'Destroy, recreate and import data to specified index' task :reset, [:index] => :environment do |task, args| Chewy::RakeHelper.subscribe_task_stats! if args[:index].present? Chewy::RakeHelper.reset_index(args[:index]) else Chewy::RakeHelper.reset_all end end namespace :reset do desc 'Destroy, recreate and import data for all found indexes' task all: :environment do Chewy::RakeHelper.subscribe_task_stats! Chewy::RakeHelper.reset_all end end desc 'Updates data specified index' task :update, [:index] => :environment do |task, args| Chewy::RakeHelper.subscribe_task_stats! if args[:index].present? Chewy::RakeHelper.update_index(args[:index]) else Chewy::RakeHelper.update_all end end namespace :update do desc 'Updates data for all found indexes' task all: :environment do Chewy::RakeHelper.subscribe_task_stats! Chewy::RakeHelper.update_all end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chewy-0.8.3 | lib/tasks/chewy.rake |
chewy-0.8.2 | lib/tasks/chewy.rake |