summaryrefslogtreecommitdiff
path: root/up-www.rb
diff options
context:
space:
mode:
authorpks <pks@pks.rocks>2021-03-21 15:31:00 +0100
committerpks <pks@pks.rocks>2021-03-21 15:31:00 +0100
commitf66e0e197bcacf66d8438ca4a1514d386c37990e (patch)
tree738ff7cfa42d60640e8cb13d08c0ae1e61129dd2 /up-www.rb
parent6a54c5962aebfd3ad1d136d3e7ace6582b967488 (diff)
hosts.txt file
Diffstat (limited to 'up-www.rb')
-rwxr-xr-xup-www.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/up-www.rb b/up-www.rb
index 53061b8..723ebf0 100755
--- a/up-www.rb
+++ b/up-www.rb
@@ -15,7 +15,7 @@ end
configure do
hosts = {}
- ReadFile.new("./hosts.txt").readlines.each { |line|
+ ReadFile.new("#{File.dirname(__FILE__)}/hosts.txt").readlines.each { |line|
hosts[line.split[0]] = Host.new line
}
puts "> loaded #{hosts.keys.size} hosts"