summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-12-08 13:03:49 +0200
committerPaul Buetow <paul@buetow.org>2024-12-08 13:03:49 +0200
commit16bcda50fb5aeca6301f3fe71abf4ddc62e244f0 (patch)
tree4c0717d6e0778c3a75884c6e150bd09fae6b26dc /Rakefile
parentf0b0dae5bb2e16cf45223fc31396708bd069d06c (diff)
add gemspec
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index acb3c15..3e7457b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -29,3 +29,14 @@ task :foo do
end
end
end
+
+desc 'Set up the /etc/hosts file'
+task :hosts do
+ configure do
+ only_when { hostname is :earth }
+
+ file '/etc/hosts.test' do
+ add_line '192.168.1.101 foo'
+ end
+ end
+end