commands/rsync-auto: do an initial sync [GH-3327]
This commit is contained in:
parent
800cf7539b
commit
09a3409746
|
@ -1,5 +1,9 @@
|
||||||
## 1.5.3 (unreleased)
|
## 1.5.3 (unreleased)
|
||||||
|
|
||||||
|
IMPROVEMENTS:
|
||||||
|
|
||||||
|
- commands/rsync-auto: An initial sync is done before watching folders. [GH-3327]
|
||||||
|
|
||||||
BUG FIXES:
|
BUG FIXES:
|
||||||
|
|
||||||
- core: Randomize some filenames internally to improve the parallelism
|
- core: Randomize some filenames internally to improve the parallelism
|
||||||
|
|
|
@ -36,6 +36,16 @@ module VagrantPlugins
|
||||||
folders = synced_folders(machine)[:rsync]
|
folders = synced_folders(machine)[:rsync]
|
||||||
next if !folders || folders.empty?
|
next if !folders || folders.empty?
|
||||||
|
|
||||||
|
# Get the SSH info for this machine so we can do an initial
|
||||||
|
# sync to the VM.
|
||||||
|
ssh_info = machine.ssh_info
|
||||||
|
if ssh_info
|
||||||
|
machine.ui.info(I18n.t("vagrant.rsync_auto_initial"))
|
||||||
|
folders.each do |id, folder_opts|
|
||||||
|
RsyncHelper.rsync_single(machine, ssh_info, folder_opts)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
folders.each do |id, folder_opts|
|
folders.each do |id, folder_opts|
|
||||||
# If we marked this folder to not auto sync, then
|
# If we marked this folder to not auto sync, then
|
||||||
# don't do it.
|
# don't do it.
|
||||||
|
|
|
@ -154,6 +154,8 @@ en:
|
||||||
%{names}
|
%{names}
|
||||||
provisioner_cleanup: |-
|
provisioner_cleanup: |-
|
||||||
Running cleanup tasks for '%{name}' provisioner...
|
Running cleanup tasks for '%{name}' provisioner...
|
||||||
|
rsync_auto_initial: |-
|
||||||
|
Doing an initial rsync...
|
||||||
rsync_auto_path: |-
|
rsync_auto_path: |-
|
||||||
Watching: %{path}
|
Watching: %{path}
|
||||||
rsync_communicator_not_ready: |-
|
rsync_communicator_not_ready: |-
|
||||||
|
|
Loading…
Reference in New Issue