Example #1
0
        install_pkg(PKG)

    Stylize = ConsoleStyle(options.verbose, log_file)
    import git

    Stylize.default('')

    if sys.platform in ["win32", "win64"]:  # Windows 32/64-bit
        git.Git.USE_SHELL = True

    Stylize.underline('Starting Update')

    # -------------------- Modules -------------------- #
    with Stage('Modules', 'base/modules'):
        Stylize.h2("Updating Utilities")
        update_repo(f"{CONFIG.BaseRepo}/Utils.git", 'utils',
                    options.repo_branch)

    # -------------------- Device Transport -------------------- #
    with Stage('Device Transport', os.path.join('device', 'transport')):
        for transport in CONFIG.Repos.Transport:
            Stylize.h2(f"Updating Device {transport}")
            update_repo(f"{CONFIG.BaseRepo}/Device/Transport/{transport}.git",
                        transport.lower(), options.repo_branch)

    # -------------------- Device Actuators -------------------- #
    with Stage('Device', 'device') as d:
        Stylize.h2(f"Updating Actuators")
        update_repo(f"{CONFIG.BaseRepo}/Device/Actuator.git", 'actuator',
                    options.repo_branch)

        rslt = subprocess.call(
        install_pkg(PKG)

    Stylize = ConsoleStyle(options.verbose, log_file)
    import git

    Stylize.default('')

    if sys.platform in ["win32", "win64"]:  # Windows 32/64-bit
        git.Git.USE_SHELL = True

    Stylize.underline('Starting Update')

    # -------------------- Modules -------------------- #
    with Stage('Modules', 'base/modules/tmp'):
        Stylize.h2("Updating Utilities")
        update_repo(f"{CONFIG.BaseRepo}/Utils.git", 'sb_utils', options.repo_branch)

    # -------------------- Orchestrator -------------------- #
    with Stage('Orchestrator', 'orchestrator'):
        for repo in CONFIG.Repos.Orchestrator:
            Stylize.h2(f"Updating {repo}")
            update_repo(f"{CONFIG.BaseRepo}/Orchestrator/{repo}.git", repo.lower(), options.repo_branch)

    # -------------------- Orchestrator Transport -------------------- #
    with Stage(f'Orchestrator Transport', os.path.join('orchestrator', 'transport')):
        for transport in CONFIG.Repos.Transport:
            Stylize.h2(f"Updating Orchestrator {transport}")
            update_repo(f"{CONFIG.BaseRepo}/Orchestrator/Transport/{transport}.git", transport.lower(), options.repo_branch)

    # -------------------- Logger -------------------- #
    with Stage('Logger'):