From c3d0903f85886be8f2840ad339a3c81bef2c1520 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 16 Jan 2014 09:11:41 -0800 Subject: [PATCH] synced_folders/rsync: output directory under watch for rsync-auto --- plugins/synced_folders/rsync/command/rsync_auto.rb | 10 ++++++++++ templates/locales/en.yml | 2 ++ 2 files changed, 12 insertions(+) diff --git a/plugins/synced_folders/rsync/command/rsync_auto.rb b/plugins/synced_folders/rsync/command/rsync_auto.rb index f7a6b1ae7..3419cd9fe 100644 --- a/plugins/synced_folders/rsync/command/rsync_auto.rb +++ b/plugins/synced_folders/rsync/command/rsync_auto.rb @@ -47,6 +47,16 @@ module VagrantPlugins end end + # Output to the user what paths we'll be watching + paths.keys.sort.each do |path| + paths[path].each do |path_opts| + path_opts[:machine].ui.info(I18n.t( + "vagrant.rsync_auto_path", + path: path.to_s, + )) + end + end + @logger.info("Listening to paths: #{paths.keys.sort.inspect}") @logger.info("Listening via: #{Listen::Adapter.select.inspect}") callback = method(:callback).to_proc.curry[paths] diff --git a/templates/locales/en.yml b/templates/locales/en.yml index bf0e38141..67fae5ae5 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -89,6 +89,8 @@ en: %{names} provisioner_cleanup: |- Running cleanup tasks for '%{name}' provisioner... + rsync_auto_path: |- + Watching: %{path} rsync_communicator_not_ready: |- The machine is reporting that it is not ready for rsync to communiate with it. Verify that this machine is properly running.