Sha256: 1b8a5307245a5e46831317be4c9ef32a1174a5b9a93d955b21e541c047c0076b
Contents?: true
Size: 642 Bytes
Versions: 5
Compression:
Stored size: 642 Bytes
Contents
# frozen_string_literal: true desc "Reindex Calagator models with Sunspot" task "sunspot:reindex:calagator" do # Silence warnings about already-initialized constants caused by # sunspot-rails' aggressive eager loading of all engine files. original_verbosity = $VERBOSE $VERBOSE = nil puts "Reindexing Venues…" Rake.application["sunspot:solr:reindex"].invoke(500, "Calagator::Venue") Rake.application["sunspot:solr:reindex"].reenable Rake.application["sunspot:reindex"].reenable puts "Reindexing Events…" Rake.application["sunspot:solr:reindex"].invoke(500, "Calagator::Event") $VERBOSE = original_verbosity end
Version data entries
5 entries across 5 versions & 2 rubygems