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

Commit

Permalink
Support forks or custom vendor directory with vendor_path option
Browse files Browse the repository at this point in the history
  • Loading branch information
oxyc committed Mar 25, 2017
1 parent 0c9448a commit 8474fae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
vendor_path = cconfig['vendor_path'] || 'vendor/geerlingguy/drupal-vm'
if Dir.exist?("#{host_project_dir}/#{vendor_path}")
host_drupalvm_dir = "#{host_project_dir}/#{vendor_path}"
guest_drupalvm_dir = "#{guest_project_dir}/#{vendor_path}"
end

# Read config_dir from composer.json if set.
Expand Down

0 comments on commit 8474fae

Please sign in to comment.