Sha256: 904f0d6f7a78cd092efb2d18e658699a193096d33de94784d4c1a0926f063bff
Contents?: true
Size: 847 Bytes
Versions: 4
Compression:
Stored size: 847 Bytes
Contents
namespace :ts do desc 'Generate the Sphinx configuration file' task :configure => :environment do interface.configure end desc 'Generate the Sphinx configuration file and process all indices' task :index => :environment do interface.index(ENV['INDEX_ONLY'] != 'true') end desc 'Generate fresh index files for real-time indices' task :generate => :environment do interface.generate end desc 'Stop Sphinx, index and then restart Sphinx' task :rebuild => [:stop, :index, :start] desc 'Restart the Sphinx daemon' task :restart => [:stop, :start] desc 'Start the Sphinx daemon' task :start => :environment do interface.start end desc 'Stop the Sphinx daemon' task :stop => :environment do interface.stop end def interface @interface ||= ThinkingSphinx::RakeInterface.new end end
Version data entries
4 entries across 4 versions & 1 rubygems