From 326e8012f7af7a8d1252dc35c374f8a82f5f2c1b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 6 May 2014 18:40:55 -0700 Subject: [PATCH] guests/*: setup rsync_pre properly --- plugins/guests/darwin/plugin.rb | 5 +++++ plugins/guests/freebsd/plugin.rb | 5 +++++ plugins/guests/linux/plugin.rb | 5 +++++ plugins/guests/netbsd/plugin.rb | 5 +++++ plugins/guests/openbsd/plugin.rb | 5 +++++ plugins/guests/smartos/plugin.rb | 5 +++++ plugins/guests/solaris/plugin.rb | 5 +++++ 7 files changed, 35 insertions(+) diff --git a/plugins/guests/darwin/plugin.rb b/plugins/guests/darwin/plugin.rb index 3effee16a..9736500bd 100644 --- a/plugins/guests/darwin/plugin.rb +++ b/plugins/guests/darwin/plugin.rb @@ -51,6 +51,11 @@ module VagrantPlugins Cap::RSync end + guest_capability("darwin", "rsync_pre") do + require_relative "cap/rsync" + Cap::RSync + end + guest_capability("darwin", "shell_expand_guest_path") do require_relative "cap/shell_expand_guest_path" Cap::ShellExpandGuestPath diff --git a/plugins/guests/freebsd/plugin.rb b/plugins/guests/freebsd/plugin.rb index 524b57329..2020052ce 100644 --- a/plugins/guests/freebsd/plugin.rb +++ b/plugins/guests/freebsd/plugin.rb @@ -56,6 +56,11 @@ module VagrantPlugins Cap::RSync end + guest_capability("linux", "rsync_pre") do + require_relative "cap/rsync" + Cap::RSync + end + guest_capability("freebsd", "shell_expand_guest_path") do require_relative "cap/shell_expand_guest_path" Cap::ShellExpandGuestPath diff --git a/plugins/guests/linux/plugin.rb b/plugins/guests/linux/plugin.rb index 2a222b6cc..a2bb1167c 100644 --- a/plugins/guests/linux/plugin.rb +++ b/plugins/guests/linux/plugin.rb @@ -77,6 +77,11 @@ module VagrantPlugins Cap::RSync end + guest_capability("linux", "rsync_pre") do + require_relative "cap/rsync" + Cap::RSync + end + guest_capability("linux", "unmount_virtualbox_shared_folder") do require_relative "cap/mount_virtualbox_shared_folder" Cap::MountVirtualBoxSharedFolder diff --git a/plugins/guests/netbsd/plugin.rb b/plugins/guests/netbsd/plugin.rb index 6c13658ea..490c73644 100644 --- a/plugins/guests/netbsd/plugin.rb +++ b/plugins/guests/netbsd/plugin.rb @@ -56,6 +56,11 @@ module VagrantPlugins Cap::RSync end + guest_capability("netbsd", "rsync_pre") do + require_relative "cap/rsync" + Cap::RSync + end + guest_capability("netbsd", "shell_expand_guest_path") do require_relative "cap/shell_expand_guest_path" Cap::ShellExpandGuestPath diff --git a/plugins/guests/openbsd/plugin.rb b/plugins/guests/openbsd/plugin.rb index 5bdba96eb..7a64b16d6 100644 --- a/plugins/guests/openbsd/plugin.rb +++ b/plugins/guests/openbsd/plugin.rb @@ -56,6 +56,11 @@ module VagrantPlugins Cap::RSync end + guest_capability("openbsd", "rsync_pre") do + require_relative "cap/rsync" + Cap::RSync + end + guest_capability("openbsd", "shell_expand_guest_path") do require_relative "cap/shell_expand_guest_path" Cap::ShellExpandGuestPath diff --git a/plugins/guests/smartos/plugin.rb b/plugins/guests/smartos/plugin.rb index 9d27d80c0..bc515588d 100644 --- a/plugins/guests/smartos/plugin.rb +++ b/plugins/guests/smartos/plugin.rb @@ -50,6 +50,11 @@ module VagrantPlugins require_relative "cap/rsync" Cap::RSync end + + guest_capability("smartos", "rsync_pre") do + require_relative "cap/rsync" + Cap::RSync + end end end end diff --git a/plugins/guests/solaris/plugin.rb b/plugins/guests/solaris/plugin.rb index 330410f1f..31988453c 100644 --- a/plugins/guests/solaris/plugin.rb +++ b/plugins/guests/solaris/plugin.rb @@ -50,6 +50,11 @@ module VagrantPlugins require_relative "cap/rsync" Cap::RSync end + + guest_capability("solaris", "rsync_pre") do + require_relative "cap/rsync" + Cap::RSync + end end end end