Sha256: 45368be433c519c54854d47a93f7e29affe1dbf2ed136b1f0c35896a42dede3e
Contents?: true
Size: 773 Bytes
Versions: 8
Compression:
Stored size: 773 Bytes
Contents
namespace :meilisearch do desc 'Reindex all models' task reindex: :environment do puts 'Reindexing all Meilisearch models' MeiliSearch::Rails::Utilities.reindex_all_models end desc 'Set settings to all indexes' task set_all_settings: :environment do puts 'Set settings in all Meilisearch models' MeiliSearch::Rails::Utilities.set_settings_all_models end desc 'Clear all indexes' task clear_indexes: :environment do puts 'Clearing indexes from all Meilisearch models' MeiliSearch::Rails::Utilities.clear_all_indexes end desc 'Create initializer file' task install: :environment do puts 'Creating initializer file' copy_file "#{__dir__}/../templates/initializer.rb", 'config/initializers/meilisearch.rb' end end
Version data entries
8 entries across 8 versions & 1 rubygems