Sha256: 3d2b9d8d4d36e6d9b4355afde8c09163a262a39216c9c93b82d91fdb02a9f98b

Contents?: true

Size: 593 Bytes

Versions: 112

Compression:

Stored size: 593 Bytes

Contents

# Indexing tasks.
#
desc "Generate the index in parallel (index, category optional)."
task :index, [:index, :category] => :'index:parallel'

namespace :index do

  [:parallel, :serial].each do |kind|
    desc "Generate the index in #{kind} (index, category optional)."
    task kind, [: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 Picky::Scheduler.new(kind => true)
    end
  end

end

Version data entries

112 entries across 112 versions & 1 rubygems

Version Path
picky-4.15.0 lib/tasks/index.rake
picky-4.14.0 lib/tasks/index.rake
picky-4.13.1 lib/tasks/index.rake
picky-4.13.0 lib/tasks/index.rake
picky-4.12.13 lib/tasks/index.rake
picky-4.12.12 lib/tasks/index.rake
picky-4.12.11 lib/tasks/index.rake
picky-4.12.10 lib/tasks/index.rake
picky-4.12.8 lib/tasks/index.rake
picky-4.12.7 lib/tasks/index.rake
picky-4.12.6 lib/tasks/index.rake
picky-4.12.5 lib/tasks/index.rake
picky-4.12.4 lib/tasks/index.rake
picky-4.12.3 lib/tasks/index.rake
picky-4.12.2 lib/tasks/index.rake
picky-4.12.1 lib/tasks/index.rake
picky-4.12.0 lib/tasks/index.rake
picky-4.11.3 lib/tasks/index.rake
picky-4.11.2 lib/tasks/index.rake
picky-4.11.1 lib/tasks/index.rake