lib/tasks/index.rake in picky-0.11.0 vs lib/tasks/index.rake in picky-0.11.1
- old
+ new
@@ -10,20 +10,19 @@
# 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
+ 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."
+ # desc "Generates the index snapshots."
task :generate_snapshots => :application do
Indexes.take_snapshot
end
# desc "E.g. Generates a specific index table. Note: intermediate indexes need to be there."
\ No newline at end of file