Sha256: acf7d452f2fcc06974096a767d2c7a7b21e482ed5a75737998b0d06a247bdbeb

Contents?: true

Size: 496 Bytes

Versions: 16

Compression:

Stored size: 496 Bytes

Contents

# Indexing tasks.
#
desc "Generate the index (index, category optional)."
task :index, [:index, :category] => :application do |_, options|
  index, category = options.index, options.category

  specific = Picky::Indexes
  specific = specific[index]    if index
  specific = specific[category] if category
  specific.index
end

namespace :index do

  task :randomly => :application do
    Picky::Indexes.index true
  end
  task :ordered => :application do
    Picky::Indexes.index false
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
picky-3.6.16 lib/tasks/index.rake
picky-3.6.15 lib/tasks/index.rake
picky-3.6.14 lib/tasks/index.rake
picky-3.6.13 lib/tasks/index.rake
picky-3.6.12 lib/tasks/index.rake
picky-3.6.11 lib/tasks/index.rake
picky-3.6.10 lib/tasks/index.rake
picky-3.6.9 lib/tasks/index.rake
picky-3.6.8 lib/tasks/index.rake
picky-3.6.7 lib/tasks/index.rake
picky-3.6.6 lib/tasks/index.rake
picky-3.6.4 lib/tasks/index.rake
picky-3.6.3 lib/tasks/index.rake
picky-3.6.2 lib/tasks/index.rake
picky-3.6.1 lib/tasks/index.rake
picky-3.6.0 lib/tasks/index.rake