lib/tasks/index.rake in picky-0.10.5 vs lib/tasks/index.rake in picky-0.11.0
- old
+ new
@@ -10,9 +10,13 @@
# Indexes.create_directory_structure
# puts "Directory structure generated."
# end
# end
+ # TODO Make option to also use non-random.
+ # rake index:randomly (default)
+ # rake index:ordered
+ #
desc "Takes a snapshot, indexes, and caches."
task :generate, [:order] => :application do |_, options|
randomly = (options.order == 'ordered') ? false : true
Indexes.index randomly
end
\ No newline at end of file