public
Description: Ruby on Rails configurator and client to the Sphinx full text search engine
Homepage: http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/
Clone URL: git://github.com/fauna/ultrasphinx.git
Matt Gleeson (author)
Thu Jun 18 12:40:45 -0700 2009
fauna (committer)
Sat Jun 27 11:04:12 -0700 2009
ultrasphinx / install.rb
100755 11 lines (9 sloc) 0.373 kb
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby
 
Dir.chdir("#{File.dirname(__FILE__)}/../../..") do
  require 'config/environment'
  if ActiveRecord::Base.connection.instance_variable_get('@config')[:adapter] == 'postgresql'
    puts "Installing PostgreSQL stored procedures"
    with_svn = File.exist?(".svn") ? "--svn" : ""
    exec "script/generate ultrasphinx_migration #{with_svn}"
  end
end