(name)
get yml content
get yml content
get yml content
def project_yml(name):
    """
    get yml content
    """
    folder_path = projects[name]
    path = get_yml_path(folder_path)
    config = project_config(folder_path)

    with open(path) as data_file:
        env = None
        if os.path.isfile(folder_path + '/.env'):
            with open(folder_path + '/.env') as env_file:
                env = env_file.read()

        return jsonify(yml=data_file.read(), env=env, config=config._replace(version=config.version.__str__()))
def project_yml ( name ) : folder_path = projects [ name ] path = get_yml_path ( folder_path ) config = project_config ( folder_path ) with open ( path ) as data_file : env = None if os . path . isfile ( folder_path + '/.env' ) : with open ( folder_path + '/.env' ) as env_file : env = env_file . read ( ) return jsonify ( yml = data_file . read ( ) , env = env , config = config . _replace ( version = config . version . __str__ ( ) ) )