Sha256: 922076013f167c1f447af566155b6a60df6377e684092a0c4979419ef8c16c50

Contents?: true

Size: 824 Bytes

Versions: 2

Compression:

Stored size: 824 Bytes

Contents

namespace :pose do

  desc "Creates the Pose tables in the database."
  task :install => :environment do
    Pose::Jobs::Install.new.perform
  end

  desc "Removes the Pose tables from the database."
  task :uninstall => :environment do
    Pose::Jobs::Uninstall.new.perform
  end

  desc "Cleans out unused data from the search index."
  task :vacuum => :environment do
    Pose::Jobs::Vacuum.new.perform
  end

  desc "Removes the search index for all instances of the given classes."
  task :remove, [:class_name] => :environment do |_, args|
    Pose::Jobs::Remove.new(args.class_name).perform
  end

  desc "Recreates the search index for all instances of the given class from scratch."
  task :reindex_all, [:class_name] => [:environment] do |_, args|
    Pose::Jobs::ReindexAll.new(args.class_name).perform
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pose-3.2.0 lib/tasks/pose_tasks.rake
pose-3.1.1 lib/tasks/pose_tasks.rake