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`.
51 lines
1.1 KiB
Ruby
51 lines
1.1 KiB
Ruby
require "vagrant"
|
|
|
|
module VagrantPlugins
|
|
module GuestHaiku
|
|
class Plugin < Vagrant.plugin("2")
|
|
name "Haiku guest"
|
|
description "Haiku guest support."
|
|
|
|
guest(:haiku) do
|
|
require_relative "guest"
|
|
Guest
|
|
end
|
|
|
|
guest_capability(:haiku, :halt) do
|
|
require_relative "cap/halt"
|
|
Cap::Halt
|
|
end
|
|
|
|
guest_capability(:haiku, :change_host_name) do
|
|
require_relative "cap/change_host_name"
|
|
Cap::ChangeHostName
|
|
end
|
|
|
|
guest_capability(:haiku, :insert_public_key) do
|
|
require_relative "cap/insert_public_key"
|
|
Cap::InsertPublicKey
|
|
end
|
|
|
|
guest_capability(:haiku, :remove_public_key) do
|
|
require_relative "cap/remove_public_key"
|
|
Cap::RemovePublicKey
|
|
end
|
|
|
|
guest_capability(:haiku, :rsync_install) do
|
|
require_relative "cap/rsync"
|
|
Cap::RSync
|
|
end
|
|
|
|
guest_capability(:haiku, :rsync_installed) do
|
|
require_relative "cap/rsync"
|
|
Cap::RSync
|
|
end
|
|
|
|
guest_capability(:haiku, :rsync_command) do
|
|
require_relative "cap/rsync"
|
|
Cap::RSync
|
|
end
|
|
end
|
|
end
|
|
end
|