def install_testing_dependencies(): dispatch_map = { 'Ubuntu': install_testing_dependencies_apt, } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def install_build_prerequisites(): dispatch_map = { 'Centos': install_build_prerequisites_yum, } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def install_os_specific_dependencies(): dispatch_map = { 'Ubuntu': install_os_specific_dependencies_apt, 'Centos': install_os_specific_dependencies_yum, 'Centos linux': install_os_specific_dependencies_yum, } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def install_build_prerequisites(): dispatch_map = { 'Ubuntu': install_build_prerequisites_apt, 'Centos': install_build_prerequisites_yum, 'Centos linux': install_build_prerequisites_yum, } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def get_build_prerequisites(): dispatch_map = { 'Ubuntu': get_build_prerequisites_apt, 'Centos': get_build_prerequisites_yum, 'Centos linux': get_build_prerequisites_yum, } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def enable_admin_privileges(): dispatch_map = { 'Ubuntu': enable_admin_privileges_apt, 'Centos': enable_admin_privileges_yum, 'Centos linux': enable_admin_privileges_yum } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def restart_kerberos(): dispatch_map = { 'Ubuntu': restart_kerberos_apt, 'Centos': restart_kerberos_yum, 'Centos linux': restart_kerberos_yum } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def configure_realm_and_domain(): dispatch_map = { 'Ubuntu': configure_realm_and_domain_apt, 'Centos': configure_realm_and_domain_yum, 'Centos linux': configure_realm_and_domain_yum } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def install_building_dependencies(): dispatch_map = { 'Ubuntu': install_building_dependencies_debian, 'Centos': install_building_dependencies_redhat, 'Centos linux': install_building_dependencies_redhat, 'Opensuse ': install_building_dependencies_suse, } try: dispatch_map[ci.get_distribution()]() except KeyError: ci.raise_not_implemented_for_distribution()
def install_irods_repository(): dispatch_map = { 'Ubuntu': install_irods_repository_apt, 'Centos': install_irods_repository_yum, 'Centos linux': install_irods_repository_yum, 'Opensuse ': install_irods_repository_zypper, } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]() except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()
def configure_client(database): dispatch_map = { 'Ubuntu': configure_client_apt, 'Centos': configure_client_yum, 'Centos linux': configure_client_yum, 'Opensuse': configure_client_zypper, } try: return dispatch_map[irods_python_ci_utilities.get_distribution()]( database) except KeyError: irods_python_ci_utilities.raise_not_implemented_for_distribution()