Sha256: 0a5d82172a1cb74482b49e6947e595136e83444b419ef38af839225fd804023e

Contents?: true

Size: 651 Bytes

Versions: 35

Compression:

Stored size: 651 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

  # Advanced usage.
  #
  # desc "Takes a snapshot, indexes, and caches in random order."
  task :randomly => :application do
    Picky::Indexes.index true
  end
  # desc "Takes a snapshot, indexes, and caches in order given."
  task :ordered => :application do
    Picky::Indexes.index false
  end

end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
picky-3.5.4 lib/tasks/index.rake
picky-3.5.3 lib/tasks/index.rake
picky-3.5.2 lib/tasks/index.rake
picky-3.5.1 lib/tasks/index.rake
picky-3.5.0 lib/tasks/index.rake
picky-3.4.3 lib/tasks/index.rake
picky-3.4.2 lib/tasks/index.rake
picky-3.4.1 lib/tasks/index.rake
picky-3.4.0 lib/tasks/index.rake
picky-3.3.3 lib/tasks/index.rake
picky-3.3.2 lib/tasks/index.rake
picky-3.3.1 lib/tasks/index.rake
picky-3.3.0 lib/tasks/index.rake
picky-3.2.0 lib/tasks/index.rake
picky-3.1.13 lib/tasks/index.rake
picky-3.1.12 lib/tasks/index.rake
picky-3.1.11 lib/tasks/index.rake
picky-3.1.10 lib/tasks/index.rake
picky-3.1.9 lib/tasks/index.rake
picky-3.1.8 lib/tasks/index.rake