This repository has been archived on 2023-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
pgls/lib/pg_ldap_sync.rb
Lars Kanis 257b1a5e49 Whole bunch of changes
Run sync within a SQL transaction, so that no partial sync happens

Don't abort on SQL errors, but print ERROR notice

Exit with code 1 when any ERRORs were logged

Silence the test suite, so that test runs are more clearly

Use PG queries instead of psql in test. This is more flexible
than parsing text outputs per Regexp.
2018-03-13 16:34:50 +01:00

22 lines
355 B
Ruby

require "pg_ldap_sync/application"
require "pg_ldap_sync/version"
module PgLdapSync
class LdapError < RuntimeError
end
class ApplicationExit < RuntimeError
attr_reader :exitcode
def initialize(exitcode)
@exitcode = exitcode
end
end
class InvalidConfig < ApplicationExit
end
class ErrorExit < ApplicationExit
end
end