diff options
| author | Paul Buetow <paul@buetow.org> | 2026-07-06 10:14:39 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-07-06 10:14:39 +0300 |
| commit | f7498c9ae626b9ab654fe6eb736e19c62cf5d38d (patch) | |
| tree | 65e79446bd327633af779b3a1796e0da269a1530 /api/api.go | |
| parent | 72cf1553e87bef43a4d988896d98034ddfbc018c (diff) | |
refactor
Diffstat (limited to 'api/api.go')
| -rw-r--r-- | api/api.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -10,7 +10,7 @@ import ( // File creates a file resource. func File(path string, opts ...option.Option) resource.Resource { - return file.Have(path, opts...) + return file.Present(path, opts...) } // NoFile creates a file resource that is ensured to be absent. @@ -20,7 +20,7 @@ func NoFile(path string, opts ...option.Option) resource.Resource { // Dir creates a directory resource. func Dir(path string, opts ...option.Option) resource.Resource { - return dir.Have(path, opts...) + return dir.Present(path, opts...) } // NoDir creates a directory resource that is ensured to be absent. @@ -30,7 +30,7 @@ func NoDir(path string, opts ...option.Option) resource.Resource { // Link creates a link resource (symbolic or hard). func Link(path string, opts ...option.Option) resource.Resource { - return link.Have(path, opts...) + return link.Present(path, opts...) } // NoLink creates a link resource that is ensured to be absent. |
