Remove possibility to use postgres-pr

It is no longer maintained and doesn't work with current PostgreSQL versions.
This commit is contained in:
Lars Kanis
2018-02-06 22:29:48 +01:00
parent e73cdd52a9
commit 5169177b97
4 changed files with 10 additions and 38 deletions

View File

@ -6,29 +6,7 @@ require 'optparse'
require 'yaml'
require 'logger'
require 'kwalify'
begin
require 'pg'
rescue LoadError => e
begin
require 'postgres'
class PG
alias initialize_before_hash_change initialize
def initialize(*args)
arg = args.first
if args.length==1 && arg.kind_of?(Hash)
initialize_before_hash_change(arg[:host], arg[:port], nil, nil, arg[:dbname], arg[:user], arg[:password])
else
initialize_before_hash_change(*args)
end
end
end
rescue LoadError
raise e
end
end
require 'pg_ldap_sync'
require 'pg'
module PgLdapSync
class Application