Actions
User story #25970
openMake compilation resolved loops over Blocks/Methods in techniques possible
Status:
Pending release
Priority:
N/A
Assignee:
Category:
rudderc
Target version:
Effort required:
Name check:
To do
Fix check:
To do
Regression:
No
Description
Being able to loop/repeat a method|block call in a technique using parameterized local variables would be great.
The loops will be resolved at technique compilation, right before the starting from the leaf element when nested.
The proposed syntax is heavily inspired from the Ansible loops syntax https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_loops.html#using-loops.
- name: "Install a package" method: package_present params: name: "${plouf.name}" version: "${plouf.version}" foreach: # field to force a loop - name: "vim" version: "latest" - name: "htop" version: "2.3.4" - name: "${technique_id.extra_package}" version: "latest" foreach_name: "plouf" # loop iterator name, useful when loops are nested using blocks
Actions