summaryrefslogtreecommitdiff
path: root/internal/resource/dir/dir.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/resource/dir/dir.go')
-rw-r--r--internal/resource/dir/dir.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/resource/dir/dir.go b/internal/resource/dir/dir.go
index 34b161d..283cea9 100644
--- a/internal/resource/dir/dir.go
+++ b/internal/resource/dir/dir.go
@@ -7,8 +7,8 @@ import (
"os/user"
"strconv"
- "codeberg.org/snonux/gonf/internal/resource"
opt "codeberg.org/snonux/gonf/api/option"
+ "codeberg.org/snonux/gonf/internal/resource"
)
type Dir struct {
@@ -187,7 +187,7 @@ func Ensure(path string, opts ...opt.Option) error {
return d.apply()
}
-func Have(path string, opts ...opt.Option) resource.Resource {
+func Present(path string, opts ...opt.Option) resource.Resource {
d, err := build(path, opts...)
if err != nil {
log.Fatalf("failed to apply directory resource %s: %v", path, err)
@@ -201,5 +201,5 @@ func Have(path string, opts ...opt.Option) resource.Resource {
func Absent(path string, opts ...opt.Option) resource.Resource {
opts = append(opts, opt.IsAbsent())
- return Have(path, opts...)
+ return Present(path, opts...)
}