Sha256: b2f2d348de768c5ea6b91bfe917c08f1601ccc5b78e2cdff378607819add7d19

Contents?: true

Size: 917 Bytes

Versions: 25

Compression:

Stored size: 917 Bytes

Contents

# Global.
#
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."
  task :generate_snapshots => :application do
    Indexes.take_snapshot
  end
  
  desc "Generates a specific index from index snapshots."
  task :specific, [:index, :category] => :application do |_, options|
    index, category = options.index, options.category
    Indexes.generate_index_only index.to_sym, category.to_sym
    Indexes.generate_cache_only index.to_sym, category.to_sym
  end
  
  desc 'Checks the index files for files that are suspiciously small or missing.'
  task :check => :application do
    Indexes.check_caches
    puts "All indexes look ok."
  end
  
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
picky-1.4.1 lib/tasks/index.rake
picky-1.4.0 lib/tasks/index.rake
picky-1.3.4 lib/tasks/index.rake
picky-1.3.3 lib/tasks/index.rake
picky-1.3.2 lib/tasks/index.rake
picky-1.3.1 lib/tasks/index.rake
picky-1.3.0 lib/tasks/index.rake
picky-1.2.4 lib/tasks/index.rake
picky-1.2.3 lib/tasks/index.rake
picky-1.2.2 lib/tasks/index.rake
picky-1.2.1 lib/tasks/index.rake
picky-1.2.0 lib/tasks/index.rake
picky-1.1.7 lib/tasks/index.rake
picky-1.1.6 lib/tasks/index.rake
picky-1.1.5 lib/tasks/index.rake
picky-1.1.4 lib/tasks/index.rake
picky-1.1.3 lib/tasks/index.rake
picky-1.1.2 lib/tasks/index.rake
picky-1.1.1 lib/tasks/index.rake
picky-1.1.0 lib/tasks/index.rake