engine: resources: file: Require paths to be absolute

This is a requirement of our file resource, so we should validate this
and clearly express it in the documentation.
This commit is contained in:
James Shubin
2018-12-16 07:02:52 -05:00
parent 8282f3b59c
commit d5bfb7257e
3 changed files with 25 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ identified by a trailing slash in their path name. File have no such slash.
It has the following properties:
* `path`: file path (directories have a trailing slash here)
* `path`: absolute file path (directories have a trailing slash here)
* `content`: raw file content
* `state`: either `exists` (the default value) or `absent`
* `mode`: octal unix file permissions