Esempio n. 1
0
def upload_build(cfg: Dict[str, str]) -> NoReturn:
    """
    Upload an already-built course.

    :param cfg: The config. COURSE_NAME, COURSE_REMOTE_TARGET, and
                DB_PROFILE are assumed to be set.

    :return: None
    """
    check_config(cfg)
    build_file = build_file_path(cfg)
    build_dir = bdc.bdc_output_directory_for_build(build_file)
    import_dbcs(cfg, build_dir)
Esempio n. 2
0
def build_and_upload(cfg: Dict[str, str]) -> NoReturn:
    """
    Build the current course and upload (import) the built artifacts to the
    Databricks instance.

    :param cfg:  The config. COURSE_NAME, COURSE_REMOTE_TARGET, and
                 DB_PROFILE are assumed to be set.

    :return: Nothing
    """
    check_config(cfg)
    build_file = build_local(cfg)
    build_dir = bdc.bdc_output_directory_for_build(build_file)
    import_dbcs(cfg, build_dir, build_file)