diff -r 1a3fa80225b2 -r 5a0cbbe0922a authserver/homestead/Vagrantfile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/authserver/homestead/Vagrantfile Wed May 27 15:34:06 2015 +0200 @@ -0,0 +1,23 @@ +require 'json' +require 'yaml' + +VAGRANTFILE_API_VERSION = "2" +confDir = $confDir ||= File.expand_path("conf") + +homesteadYamlPath = confDir + "/Homestead.yaml" +afterScriptPath = confDir + "/after.sh" +aliasesPath = confDir + "/aliases" + +require File.expand_path(File.dirname(__FILE__) + '/scripts/homestead.rb') + +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| + if File.exists? aliasesPath then + config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases" + end + + Homestead.configure(config, YAML::load(File.read(homesteadYamlPath))) + + if File.exists? afterScriptPath then + config.vm.provision "shell", path: afterScriptPath + end +end