From e37be086eba248ee1236b3ea25e79cd3670ed6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Sch=C3=B6ldstr=C3=B6m?= Date: Fri, 24 Mar 2017 20:43:01 -0500 Subject: [PATCH] Support forks or custom vendor directory with path option --- Vagrantfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 1a9850fa4..a8ebb0dd1 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -46,9 +46,10 @@ if File.exist?("#{host_project_dir}/composer.json") end # If Drupal VM is a Composer dependency set the correct path. - if Dir.exist?("#{host_project_dir}/vendor/geerlingguy/drupal-vm") - host_drupalvm_dir = "#{host_project_dir}/vendor/geerlingguy/drupal-vm" - guest_drupalvm_dir = "#{guest_project_dir}/vendor/geerlingguy/drupal-vm" + drupalvm_path = cconfig['path'] || 'vendor/geerlingguy/drupal-vm' + if Dir.exist?("#{host_project_dir}/#{drupalvm_path}") + host_drupalvm_dir = "#{host_project_dir}/#{drupalvm_path}" + guest_drupalvm_dir = "#{guest_project_dir}/#{drupalvm_path}" end # Read config_dir from composer.json if set.