synced_folders/rsync: output what is being excluded
This commit is contained in:
parent
60f3d224c9
commit
55b0dffd36
|
@ -50,7 +50,7 @@ module VagrantPlugins
|
|||
# Exclude some files by default, and any that might be configured
|
||||
# by the user.
|
||||
excludes = ['.vagrant/']
|
||||
excludes += Array(opts[:exclude]) if opts[:exclude]
|
||||
excludes += Array(opts[:exclude]).map(&:to_s) if opts[:exclude]
|
||||
excludes.uniq!
|
||||
|
||||
# Build up the actual command to execute
|
||||
|
@ -71,6 +71,10 @@ module VagrantPlugins
|
|||
|
||||
machine.ui.info(I18n.t(
|
||||
"vagrant.rsync_folder", guestpath: guestpath, hostpath: hostpath))
|
||||
if excludes.length > 1
|
||||
machine.ui.info(I18n.t(
|
||||
"vagrant.rsync_folder_excludes", excludes: excludes.inspect))
|
||||
end
|
||||
|
||||
# If we have tasks to do before rsyncing, do those.
|
||||
if machine.guest.capability?(:rsync_pre)
|
||||
|
|
|
@ -82,6 +82,7 @@ en:
|
|||
Running cleanup tasks for '%{name}' provisioner...
|
||||
rsync_folder: |-
|
||||
Rsyncing folder: %{hostpath} => %{guestpath}
|
||||
rsync_folder_excludes: " - Exclude: %{excludes}"
|
||||
ssh_exec_password: |-
|
||||
The machine you're attempting to SSH into is configured to use
|
||||
password-based authentication. Vagrant can't script entering the
|
||||
|
|
Loading…
Reference in New Issue