github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0062.yml (about)

     1  doc_meta: |
     2    folder: organization
     3    title: use tasksref
     4    head: |
     5      Showcase gradually the lengthy configuration evolve to simpler skeleton by using ref element to externalized task/flow
     6  
     7    sections:
     8      - title: Externalized the task definition - c0062-tasks-main.yml
     9        filelookup: c0062-task-main.yml
    10  
    11      - title: Externalized the task definition - c0062-tasks-simple.yml
    12        filelookup: c0062-tasks-simple.yml
    13  
    14      - title: Externalized the task definition - c0062-tasks-complicated.yml
    15        filelookup: c0062-tasks-complicated.yml
    16  
    17      - title: tasksref element
    18        content: |
    19          Introduce tasksref to manage a list of tasks, in such a way it offloads the less concerned tasks to different locations. You could manage your tasks in flexible way with your own preference, such as classify them into different names of folders
    20  
    21      - title: Demo
    22        log: yes
    23  
    24  notes:
    25    goal:
    26      - add feature to externalise task file into separate yaml file
    27  
    28  vars:
    29    student_name: tom
    30    classes: [1k,2b,3j,4s]
    31  
    32  tasksref:
    33    - c0062-tasks-simple.yml
    34    - c0062-tasks-complicated.yml
    35  
    36  tasks:
    37  
    38    -
    39      name: task
    40      ref: c0062-task-main.yml