Example #1
0
def safe_bootstrap(conf):
    conf_path = os.path.join(conf.paths.projectroot, conf.system.conf_file)
    build_tools_path = os.path.join(conf.paths.projectroot, conf.paths.buildsystem)

    bootstrap.fabric(build_tools_path, conf_path)
    bootstrap.config(build_tools_path, conf_path)
    bootstrap.utils(build_tools_path, conf_path)

    conf = get_conf()
    conf.system.processed.bootstrap = True
    logger.info('automatically ran safe tools bootstrapping procedures.')

    return conf
Example #2
0
def safe_bootstrap(conf):
    conf_path = os.path.join(conf.paths.projectroot, conf.system.conf_file)
    build_tools_path = os.path.join(conf.paths.projectroot,
                                    conf.paths.buildsystem)

    bootstrap.fabric(build_tools_path, conf_path)
    bootstrap.config(build_tools_path, conf_path)
    bootstrap.utils(build_tools_path, conf_path)

    conf = get_conf()
    conf.system.processed.bootstrap = True
    logger.info('automatically ran safe tools bootstrapping procedures.')

    return conf
Example #3
0
def safe_bootstrap(conf):
    conf_artifact_project = os.path.realpath(os.path.join(conf.paths.buildsystem,
                                                   'config')).split(os.path.sep)[-2]

    if conf.paths.projectroot.endswith(conf_artifact_project):
        return conf
    else:
        conf_path = os.path.join(conf.paths.projectroot, conf.system.conf_file)
        build_tools_path = conf.paths.buildsystem

        bootstrap.fabric(build_tools_path, conf_path)
        bootstrap.config(build_tools_path, conf_path)
        bootstrap.utils(build_tools_path, conf_path)

        conf = get_conf()
        conf.system.processed.bootstrap = True
        print('[bootstrap]: automatically ran safe tools bootstrapping procedures.')
        return conf