summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
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