lib/tasks/index.rake in picky-1.5.2 vs lib/tasks/index.rake in picky-1.5.3

- old
+ new

@@ -1,32 +1,30 @@ -# Global. +# Indexing tasks. # namespace :index do - + desc "Takes a snapshot, indexes, and caches in random order." task :randomly => :application do Indexes.index true end desc "Takes a snapshot, indexes, and caches in order given." task :ordered => :application do Indexes.index false end - + # desc "Generates the index snapshots." + # + # Note: Hidden since it is only needed by pro users. + # + # desc "Generate the data snapshots (intermediate table on a DB source)" task :generate_snapshots => :application do Indexes.take_snapshot end - + desc "Generates a specific index from index snapshots (category optional)." task :specific, [:index, :category] => :application do |_, options| index, category = options.index, options.category Indexes.generate_index_only index.to_sym, category && category.to_sym Indexes.generate_cache_only index.to_sym, category && category.to_sym end - - desc 'Checks the index files for files that are suspiciously small or missing.' - task :check => :application do - Indexes.check_caches - puts "All indexes look ok." - end - + end \ No newline at end of file