From f7498c9ae626b9ab654fe6eb736e19c62cf5d38d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 6 Jul 2026 10:14:39 +0300 Subject: refactor --- internal/resource/dir/dir.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/resource/dir/dir.go') 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...) } -- cgit v1.2.3