synced_folders/rsync: rsync__auto options

This commit is contained in:
Mitchell Hashimoto 2014-03-06 12:18:13 -08:00
parent d4511131b4
commit c8e02ddd78
2 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,10 @@ module VagrantPlugins
next if !folders || folders.empty?
folders.each do |id, folder_opts|
# If we marked this folder to not auto sync, then
# don't do it.
next if folder_opts.has_key?(:auto) && !folder_opts[:auto]
hostpath = folder_opts[:hostpath]
hostpath = File.expand_path(hostpath, machine.env.root_path)
paths[hostpath] ||= []

View File

@ -42,6 +42,9 @@ The rsync synced folder type accepts the following options:
* `rsync__args` (string or array of strings) - A list of arguments to supply
to `rsync`. By default this is "--verbose --archive --delete -z".
* `rsync__auto` (boolean) - If false, then `rsync-auto` will not
watch and automatically sync this folder. By default, this is true.
* `rsync__exclude` (string or array of strings) - A list of files or directories
to exclude from the sync. The values can be any acceptable rsync exclude
pattern. By default, the ".vagrant/" directory is excluded. We recommend