summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-14 21:08:34 +0200
committerPaul Buetow <paul@buetow.org>2025-02-14 21:08:34 +0200
commit07e5f8d4402346ccb336cc0680cad98d0d5ba920 (patch)
tree06927c1e10d41c75e822762ab43606e45c833778 /Rakefile
parentccc0fab74a0367c8236679333a40774a3f810512 (diff)
add ensure_line
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index d883dac..99a599f 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,4 +1,4 @@
-require_relative 'lib/dsl'.frozen
+require_relative 'lib/dsl'
desc 'Set up wireguard mesh'
task :wireguard do
@@ -36,7 +36,16 @@ task :hosts do
only_when { hostname is :earth }
file '/etc/hosts.test' do
- add_line '192.168.1.101 foo'
+ ensure_line '192.168.1.101 foo'
+ end
+ end
+end
+
+desc 'foo'
+task :foo do
+ configure do
+ file '/tmp/foo.txt' do
+ ensure_line 'foo bar baz'
end
end
end