synced_folders/rsync: style

This commit is contained in:
Mitchell Hashimoto 2014-04-05 09:05:39 -07:00
parent a7453a6ad6
commit bb967265df
1 changed files with 5 additions and 5 deletions

View File

@ -74,12 +74,12 @@ module VagrantPlugins
# On Windows, we have to set a default chmod flag to avoid permission issues
if Vagrant::Util::Platform.windows? && !args.any? { |arg| arg.start_with?("--chmod=") }
#Ensures that all non-masked bits get enabled
# Ensures that all non-masked bits get enabled
args << "--chmod=ugo=rwX"
#Remove the -p option if --archive is enabled (--archive equals -rlptgoD)
#otherwise new files will not have the destination-default permissions
args << "--no-perms" if (args.include? "--archive") || (args.include? "-a")
# Remove the -p option if --archive is enabled (--archive equals -rlptgoD)
# otherwise new files will not have the destination-default permissions
args << "--no-perms" if args.include?("--archive") || args.include?("-a")
end
# Build up the actual command to execute