tasks/cluster_agent_helpers.py
def refresh_assets_common(_, bin_path, additional_dist_folders, development):
    """
    Clean up and refresh cluster agent's assets and config files
    """
    # ensure BIN_PATH exists
    if not os.path.exists(bin_path):
        os.mkdir(bin_path)

    dist_folders = [
        os.path.join(bin_path, "dist"),
    ]
    dist_folders.extend(additional_dist_folders)
    for dist_folder in dist_folders:
        if os.path.exists(dist_folder):
            shutil.rmtree(dist_folder)
        if development:
            copy_tree("./dev/dist/", dist_folder)

    Clean up and refresh cluster agent's assets and config files
    
Clean up and refresh cluster agent's assets and config files
Clean up and refresh cluster agent ' s assets and config files
def refresh_assets_common(_, bin_path, additional_dist_folders, development):
    if not os.path.exists(bin_path):
        os.mkdir(bin_path)
    dist_folders = [
        os.path.join(bin_path, "dist"),
    ]
    dist_folders.extend(additional_dist_folders)
    for dist_folder in dist_folders:
        if os.path.exists(dist_folder):
            shutil.rmtree(dist_folder)
        if development:
            copy_tree("./dev/dist/", dist_folder)
def refresh_assets_common ( _ , bin_path , additional_dist_folders , development ) : if not os . path . exists ( bin_path ) : os . mkdir ( bin_path ) dist_folders = [ os . path . join ( bin_path , "dist" ) , ] dist_folders . extend ( additional_dist_folders ) for dist_folder in dist_folders : if os . path . exists ( dist_folder ) : shutil . rmtree ( dist_folder ) if development : copy_tree ( "./dev/dist/" , dist_folder )
Clean up and refresh cluster agent's assets and config files
Clean up and refresh cluster agent ' s assets and config files
"""
    Clean up and refresh cluster agent's assets and config files
    """ # ensure BIN_PATH exists
_
bin_path
additional_dist_folders
development