b5c1ce8 Framework for admin/install tools, with ipa-ldap-updater

6 files Authored by pviktori 11 years ago, Committed by rcritten 11 years ago,
    Framework for admin/install tools, with ipa-ldap-updater
    
    Currently, FreeIPA's install/admin scripts are long pieces of code
    that aren't very reusable, importable, or testable.
    They have been extended over time with features such as logging and
    error handling, but since each tool was extended individually, there
    is much inconsistency and code duplication.
    This patch starts a framework which the admin tools can use, and
    converts ipa-ldap-updater to use the framework.
    
    Common tasks the tools do -- option parsing, validation, logging
    setup, error handling -- are represented as methods. Individual
    tools can extend, override or reuse the defaults as they see fit.
    
    The ipa-ldap-updater has two modes (normal and --upgrade) that
    don't share much functionality. They are represented by separate
    classes. Option parsing, and selecting which class to run, happens
    before they're instantiated.
    
    All code is moved to importable modules to aid future testing. The
    only thing that remains in the ipa-ldap-updater script is a two-line
    call to the library.
    
    First part of the work for:
    https://fedorahosted.org/freeipa/ticket/2652
    
        
file modified
+2 -158
file added
+229
file modified
+1 -0