GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
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/DrMark/ultrasphinx.git
commit  72c199c2ec448fd620d33ff19454c93caec22215
tree    f2d5b0e7cd97739ef840553e95c861fd15890ea8
parent  0aef4531038ff7e9c79e2a38782fef782220e231
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