command/rsync-auto: proxy VMs work [GH-4067]

This commit is contained in:
Mitchell Hashimoto 2014-10-22 16:25:59 -07:00
parent 0e29dd5668
commit 59ebef7b4b
1 changed files with 12 additions and 0 deletions

View File

@ -48,6 +48,18 @@ module VagrantPlugins
paths = {}
ignores = []
with_target_vms(argv) do |machine|
if machine.provider.capability?(:proxy_machine)
proxy = machine.provider.capability(:proxy_machine)
if proxy
machine.ui.warn(I18n.t(
"vagrant.rsync_proxy_machine",
name: machine.name.to_s,
provider: machine.provider_name.to_s))
machine = proxy
end
end
cached = synced_folders(machine, cached: true)
fresh = synced_folders(machine)
diff = synced_folders_diff(cached, fresh)