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 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 e37be08
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"
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.
Expand Down

0 comments on commit e37be08

Please sign in to comment.