diff --git a/plugins/guests/smartos/cap/rsync.rb b/plugins/guests/smartos/cap/rsync.rb index 870de8001..f8ad11bd1 100644 --- a/plugins/guests/smartos/cap/rsync.rb +++ b/plugins/guests/smartos/cap/rsync.rb @@ -15,6 +15,10 @@ module VagrantPlugins comm.execute("#{sudo} chown -R #{username} '#{folder_opts[:guestpath]}'") end end + + def self.rsync_pre(machine, folder_opts) + rsync_install(machine, folder_opts) + end end end end diff --git a/plugins/guests/smartos/plugin.rb b/plugins/guests/smartos/plugin.rb index b88312d29..b691609ce 100644 --- a/plugins/guests/smartos/plugin.rb +++ b/plugins/guests/smartos/plugin.rb @@ -45,6 +45,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