Jeff Bonhag 2d4ecfbd23
Set rsync_command for Haiku guests
At the time of writing, the Haiku rsync lacks old-style --compress due
to its external zlib. Pass `-zz` to the guest rsync.

This works with or without the `--compress` flag in the host's
`rsync__args`.
2020-07-06 14:26:18 -04:00

20 lines
407 B
Ruby

module VagrantPlugins
module GuestHaiku
module Cap
class RSync
def self.rsync_installed(machine)
machine.communicate.test("test -f /bin/rsync")
end
def self.rsync_install(machine)
machine.communicate.execute("pkgman install -y rsync")
end
def self.rsync_command(machine)
"rsync -zz"
end
end
end
end
end