#NEWLINE# def render_from_repo( repo_path , to_path , template_params , settings_dir ) : #NEWLINE# #INDENT# '\n    rendering all files into the target directory\n    ' #NEWLINE# TEMPLATE_PROJECT_FOLDER_PLACEHOLDER_NAME = 'deployer_project' #NEWLINE# repo_path = repo_path . rstrip ( '/' ) #NEWLINE# to_path = to_path . rstrip ( '/' ) #NEWLINE# files_to_render = get_template_filelist ( repo_path , ignore_folders = [ TEMPLATE_PROJECT_FOLDER_PLACEHOLDER_NAME ] ) #NEWLINE# for single_file_path in files_to_render : #NEWLINE# #INDENT# source_file_path = single_file_path #NEWLINE# dest_file_path = source_file_path . replace ( repo_path , to_path ) #NEWLINE# render_from_single_file ( source_file_path , dest_file_path , template_params ) #NEWLINE# #UNINDENT# settings_template_dir = os . path . join ( repo_path , TEMPLATE_PROJECT_FOLDER_PLACEHOLDER_NAME ) #NEWLINE# settings_files = get_template_filelist ( settings_template_dir ) #NEWLINE# for single_file_path in settings_files : #NEWLINE# #INDENT# source = single_file_path #NEWLINE# dest = single_file_path . replace ( settings_template_dir , settings_dir ) #NEWLINE# render_from_single_file ( source , dest , template_params )