Skip to content

Commit d183d64

Browse files
committed
Enhancing the "write" documentation
1 parent 0c37656 commit d183d64

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

uplaybook/fs.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,16 @@ def write(
542542
recursive: bool = True,
543543
) -> Return:
544544
"""
545-
Copy the `src` file to `path`, optionally templating the contents in `src`.
545+
Write the `src` file(s) from the playbook to `path`.
546+
The `write()` task pulls the `src` file(s) from the playbook and writes them to
547+
`path`. This is typically used for templates or other files/data that are provided
548+
as a part of the playbook to write to the destination system (for example:
549+
configurations, scaffolding, etc).
550+
551+
Optionally templating the contents in `src`. It can also template file names when
552+
doing recursive operations.
553+
554+
The `src` files are searched for using the `UP_FILES_PATH` search path.
546555
547556
Args:
548557
path: Name of destination file. (templateable).

0 commit comments

Comments
 (0)