From 59ebef7b4bc26bbf26dedd20a005d11e2c542ee4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 22 Oct 2014 16:25:59 -0700 Subject: [PATCH] command/rsync-auto: proxy VMs work [GH-4067] --- plugins/synced_folders/rsync/command/rsync_auto.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/synced_folders/rsync/command/rsync_auto.rb b/plugins/synced_folders/rsync/command/rsync_auto.rb index 0ae393113..802fb6e58 100644 --- a/plugins/synced_folders/rsync/command/rsync_auto.rb +++ b/plugins/synced_folders/rsync/command/rsync_auto.rb @@ -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)