chiark / gitweb /
fix calling vagrant global-status
authorMichael Pöhn <michael.poehn@fsfe.org>
Sat, 25 Mar 2017 22:50:10 +0000 (23:50 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 22 May 2017 15:40:19 +0000 (17:40 +0200)
buildserver/Vagrantfile

index 6d5e018e723b9a59146b04cd9c7de52fc2253ed9..15bcfca863a89d5eddaa45dfd7ef526234b85030 100644 (file)
@@ -1,6 +1,9 @@
 
 require 'yaml'
-configfile = YAML.load_file('Vagrantfile.yaml')
+require 'pathname'
+
+srvpath = Pathname.new(File.dirname(__FILE__)).realpath
+configfile = YAML.load_file(File.join(srvpath, "/Vagrantfile.yaml"))
 
 Vagrant.configure("2") do |config|