summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-12-06 23:50:13 +0200
committerPaul Buetow <paul@buetow.org>2024-12-06 23:50:13 +0200
commit36c00a4509e745e4b29b1194faca4dca830a9b95 (patch)
tree4f1a2c47db34ed38ea89c5631e01b5ea3c6b2e13 /Rakefile
parent7686fe830946ae36957501f1656bb429c694b09e (diff)
more on this
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 4e7f68b..8c35269 100644
--- a/Rakefile
+++ b/Rakefile
@@ -3,13 +3,18 @@ require_relative 'lib/rcm'
desc 'Set up wireguard mesh'
task :wireguard do
make_it_so do
- p option :verbose
- dump_config
+ # p option :verbose
+ # dump_config
only_when { hostname is :earth }
file '/tmp/test/wg/wg0.conf' do
- create_parent
- content 'the content is here'
+ create_parent_directory
+ from_template content 'the content is here and the result is <%= 1 + 2 %>'
+ end
+
+ file '/tmp/test/wg/wg1.conf' do
+ create_parent_directory
+ from_file content './Rakefile'
end
end
end