public
Fork of DrMark/ultrasphinx
Description: a maintained fork of Evan Weaver's Ultrasphinx code -- see the escape_sql branch
Homepage: http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/README.html
Clone URL: git://github.com/github/ultrasphinx.git
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