buildserver: show informative message if Vagrant is not configed

This commit is contained in:
Hans-Christoph Steiner 2022-05-18 21:20:25 +02:00
parent b4d25d2834
commit 9089750277

View file

@ -2,7 +2,13 @@ require 'yaml'
require 'pathname'
srvpath = Pathname.new(File.dirname(__FILE__)).realpath
configfile = YAML.load_file(File.join(srvpath, "/Vagrantfile.yaml"))
configpath = File.join(srvpath, "/Vagrantfile.yaml")
if File.exists? configpath
configfile = YAML.load_file(configpath)
else
puts "#{configpath} does not exist, run ./makebuildserver?"
configfile = Hash.new
end
Vagrant.configure("2") do |config|