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/file/file.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/resource/file/file.go') diff --git a/internal/resource/file/file.go b/internal/resource/file/file.go index 402b348..9879e27 100644 --- a/internal/resource/file/file.go +++ b/internal/resource/file/file.go @@ -10,8 +10,8 @@ import ( "strings" "text/template" - "codeberg.org/snonux/gonf/internal/resource" opt "codeberg.org/snonux/gonf/api/option" + "codeberg.org/snonux/gonf/internal/resource" ) type File struct { @@ -218,7 +218,7 @@ func Ensure(path string, opts ...opt.Option) error { return f.apply() } -func Have(path string, opts ...opt.Option) resource.Resource { +func Present(path string, opts ...opt.Option) resource.Resource { f, err := build(path, opts...) if err != nil { log.Fatalf("failed to apply file resource %s: %v", path, err) @@ -232,5 +232,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