Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 6, 2021. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .cakebox/Vagrantfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,19 @@ def Cakebox.configure(config, user_settings)
unless settings["synced_folders"].nil?
settings["synced_folders"].each do |folder|

# On Windows mounts are created with loosened permissions so the vagrant
# user will be able to execute files (like composer installed binaries)
# inside shared folder.
# On Windows mounts are always created with loosened permissions so the
# vagrant user will be able to execute files (like composer installed
# binaries) inside the shared folders.
if Vagrant::Util::Platform.windows?
config.vm.synced_folder folder["local"], folder["remote"], :mount_options => ["dmode=777","fmode=766"], create: true
end

# On Linux/Mac mounts are created using the vagrant default settings
# UNLESS the user has specified supported mount options in Cakebox.yaml.
# On Linux/Mac mounts are by created with the same loose permissions as
# as used on Windows UNLESS the user specifies his own (Vagrant supported)
# mount options in Cakebox.yaml.
unless Vagrant::Util::Platform.windows?
if folder["mount_options"].nil?
config.vm.synced_folder folder["local"], folder["remote"], create: true
config.vm.synced_folder folder["local"], folder["remote"], :mount_options => ["dmode=777","fmode=766"], create: true
else
config.vm.synced_folder folder["local"], folder["remote"], create: true, :mount_options => [folder["mount_options"]]
end
Expand Down