Sha256: 94062e88e98dbb24a2e63e2474724cd4d42a11037730fefda53e7fab03bb4f07

Contents?: true

Size: 612 Bytes

Versions: 12

Compression:

Stored size: 612 Bytes

Contents

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

12 entries across 12 versions & 2 rubygems

Version Path
calagator-1.0.0 lib/tasks/sunspot_reindex_calagator.rake
grokus-1.0.0.9 lib/tasks/sunspot_reindex_calagator.rake
grokus-1.0.0.8 lib/tasks/sunspot_reindex_calagator.rake
grokus-1.0.0.7 lib/tasks/sunspot_reindex_calagator.rake
grokus-1.0.0.6 lib/tasks/sunspot_reindex_calagator.rake
grokus-1.0.0.5 lib/tasks/sunspot_reindex_calagator.rake
grokus-1.0.0.3 lib/tasks/sunspot_reindex_calagator.rake
grokus-1.0.0.2 lib/tasks/sunspot_reindex_calagator.rake
grokus-1.0.0.1 lib/tasks/sunspot_reindex_calagator.rake
calagator-1.0.0.rc3 lib/tasks/sunspot_reindex_calagator.rake
calagator-1.0.0.rc2 lib/tasks/sunspot_reindex_calagator.rake
calagator-1.0.0.rc1 lib/tasks/sunspot_reindex_calagator.rake