Sha256: 8966e862985eadd961975b3eb58f1d3e5e41bd0a7af6c699f7a6015a08e38011

Contents?: true

Size: 866 Bytes

Versions: 1

Compression:

Stored size: 866 Bytes

Contents

# Indexing tasks.
#
namespace :index do

  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."
  #
  # Note: Hidden since it is only needed by pro users.
  #
  # desc "Generate the data snapshots (intermediate table on a DB source)"
  task :generate_snapshots => :application do
    Indexes.take_snapshot
  end

  desc "Generates a specific index from index snapshots (category optional)."
  task :specific, [:index, :category] => :application do |_, options|
    index, category = options.index, options.category

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
picky-2.6.0 lib/tasks/index.rake