summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-12-07 00:21:42 +0200
committerPaul Buetow <paul@buetow.org>2024-12-07 00:21:42 +0200
commitbf5baf8891f0622f4e46571fa0ad990d7140b9d7 (patch)
tree506363c4fd648905683ff525a46892ca12f67501 /Rakefile
parent7c23b27007ca62ff545411aa3d1200fce4eec8c9 (diff)
sugar
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile19
1 files changed, 15 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 8c35269..8dff868 100644
--- a/Rakefile
+++ b/Rakefile
@@ -8,13 +8,24 @@ task :wireguard do
only_when { hostname is :earth }
file '/tmp/test/wg/wg0.conf' do
- create_parent_directory
- from_template content 'the content is here and the result is <%= 1 + 2 %>'
+ create_parent_directory and from_template
+
+ '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'
+ create_parent_directory and from_sourcefile
+
+ './Rakefile'
end
end
end
+
+desc 'foo task'
+task :foo do
+ make_it_so do
+ file '/tmp/test.txt' do
+ [ 'foo', 'bar', 'baz' ].sort
+ end
+ end
+end