file_ensure_block_in_section
Ensure that a section contains exactly a text block.
⚙️ Compatible targets: Linux
⚠️ Deprecated: This method is deprecated and should not be used.
Parameters
Name | Documentation |
---|---|
path | File name to edit (absolute path on the target node). This parameter is required. |
section_start | Start of the section. This parameter is required. |
section_end | End of the section. This parameter is required. |
block | Block representing the content of the section. This parameter is required. |
Outcome conditions
You need to replace ${path}
with its actual canonified value.
- ✅ Ok:
file_ensure_block_in_section_${path}_ok
- ☑️ Already compliant:
file_ensure_block_in_section_${path}_kept
- 🟨 Repaired:
file_ensure_block_in_section_${path}_repaired
- ☑️ Already compliant:
- ❌ Error:
file_ensure_block_in_section_${path}_error
Example
method: file_ensure_block_in_section
params:
section_end: VALUE
path: VALUE
block: VALUE
section_start: VALUE