From f293643f0b5ce220ee2ef170b14ad7005fd40723 Mon Sep 17 00:00:00 2001 From: Jasper Capel Date: Wed, 10 Jul 2013 15:27:24 +0200 Subject: [PATCH] Added --delete to rsync command Rsync was not removing deleted files, which can mess up the project when you're moving stuff around. This patch fixes that. --- lib/vagrant-openstack-plugin/action/sync_folders.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-openstack-plugin/action/sync_folders.rb b/lib/vagrant-openstack-plugin/action/sync_folders.rb index 5f27ac7..f51d8d5 100644 --- a/lib/vagrant-openstack-plugin/action/sync_folders.rb +++ b/lib/vagrant-openstack-plugin/action/sync_folders.rb @@ -37,7 +37,7 @@ def call(env) # Rsync over to the guest path using the SSH info command = [ - "rsync", "--verbose", "--archive", "-z", + "rsync", "--verbose", "--archive", "-z", "--delete", "--exclude", ".vagrant/", "-e", "ssh -p #{ssh_info[:port]} -o StrictHostKeyChecking=no -i '#{ssh_info[:private_key_path]}'", hostpath,