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`.
20 lines
407 B
Ruby
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
|