Merge pull request #6750 from rubencm/ticket/17434

[ticket/17434] Update Vagrantfile ruby syntax
This commit is contained in:
Marc Alexander 2024-11-24 20:19:47 +01:00 committed by GitHub
commit 46a41f4532
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

6
Vagrantfile vendored
View file

@ -11,15 +11,15 @@ aliasesPath = "vagrant/aliases"
require File.expand_path(confDir + '/scripts/homestead.rb') require File.expand_path(confDir + '/scripts/homestead.rb')
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
if File.exists? aliasesPath then if File.exist? aliasesPath then
config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases" config.vm.provision "file", source: aliasesPath, destination: "~/.bash_aliases"
end end
if File.exists? homesteadYamlPath then if File.exist? homesteadYamlPath then
Homestead.configure(config, YAML::load(File.read(homesteadYamlPath))) Homestead.configure(config, YAML::load(File.read(homesteadYamlPath)))
end end
if File.exists? afterScriptPath then if File.exist? afterScriptPath then
config.vm.provision "shell", path: afterScriptPath config.vm.provision "shell", path: afterScriptPath
end end
end end