lib/tasks/index.rake in picky-0.11.2 vs lib/tasks/index.rake in picky-0.12.0
- old
+ new
@@ -15,13 +15,13 @@
task :generate_snapshots => :application do
Indexes.take_snapshot
end
desc "Generates a specific index from index snapshots."
- task :specific, [:type, :field] => :application do |_, options|
- type, field = options.type, options.field
- Indexes.generate_index_only type.to_sym, field.to_sym
- Indexes.generate_cache_only type.to_sym, field.to_sym
+ task :specific, [:index, :category] => :application do |_, options|
+ index, category = options.index, options.category
+ Indexes.generate_index_only index.to_sym, category.to_sym
+ Indexes.generate_cache_only index.to_sym, category.to_sym
end
desc 'Checks the index files for files that are suspiciously small or missing.'
task :check => :application do
Indexes.check_caches
\ No newline at end of file