Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 8474fae

Browse files
committed
Support forks or custom vendor directory with vendor_path option
1 parent 0c9448a commit 8474fae

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Vagrantfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ if File.exist?("#{host_project_dir}/composer.json")
4646
end
4747

4848
# If Drupal VM is a Composer dependency set the correct path.
49-
if Dir.exist?("#{host_project_dir}/vendor/geerlingguy/drupal-vm")
50-
host_drupalvm_dir = "#{host_project_dir}/vendor/geerlingguy/drupal-vm"
51-
guest_drupalvm_dir = "#{guest_project_dir}/vendor/geerlingguy/drupal-vm"
49+
vendor_path = cconfig['vendor_path'] || 'vendor/geerlingguy/drupal-vm'
50+
if Dir.exist?("#{host_project_dir}/#{vendor_path}")
51+
host_drupalvm_dir = "#{host_project_dir}/#{vendor_path}"
52+
guest_drupalvm_dir = "#{guest_project_dir}/#{vendor_path}"
5253
end
5354

5455
# Read config_dir from composer.json if set.

0 commit comments

Comments
 (0)