2016-06-18 00:16:36 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestBSD
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "BSD-based guest"
|
|
|
|
description "BSD-based guest support."
|
|
|
|
|
|
|
|
guest(:bsd) do
|
|
|
|
require_relative "guest"
|
|
|
|
Guest
|
|
|
|
end
|
|
|
|
|
2018-10-04 20:13:27 +00:00
|
|
|
guest_capability(:bsd, :create_tmp_path) do
|
|
|
|
require_relative "cap/file_system"
|
|
|
|
Cap::FileSystem
|
|
|
|
end
|
|
|
|
|
|
|
|
guest_capability(:bsd, :decompress_tgz) do
|
|
|
|
require_relative "cap/file_system"
|
|
|
|
Cap::FileSystem
|
|
|
|
end
|
|
|
|
|
|
|
|
guest_capability(:bsd, :decompress_zip) do
|
|
|
|
require_relative "cap/file_system"
|
|
|
|
Cap::FileSystem
|
|
|
|
end
|
|
|
|
|
2016-06-18 19:06:20 +00:00
|
|
|
guest_capability(:bsd, :halt) do
|
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
|
|
|
|
2016-06-18 00:16:36 +00:00
|
|
|
guest_capability(:bsd, :insert_public_key) do
|
2016-06-18 01:36:28 +00:00
|
|
|
require_relative "cap/public_key"
|
|
|
|
Cap::PublicKey
|
2016-06-18 00:16:36 +00:00
|
|
|
end
|
2016-06-18 00:56:04 +00:00
|
|
|
|
|
|
|
guest_capability(:bsd, :mount_nfs_folder) do
|
|
|
|
require_relative "cap/nfs"
|
|
|
|
Cap::NFS
|
|
|
|
end
|
2016-06-18 01:36:28 +00:00
|
|
|
|
2016-06-25 21:18:32 +00:00
|
|
|
guest_capability(:bsd, :mount_virtualbox_shared_folder) do
|
|
|
|
require_relative "cap/virtualbox"
|
|
|
|
Cap::VirtualBox
|
|
|
|
end
|
|
|
|
|
2016-06-18 01:36:28 +00:00
|
|
|
guest_capability(:bsd, :remove_public_key) do
|
|
|
|
require_relative "cap/public_key"
|
|
|
|
Cap::PublicKey
|
|
|
|
end
|
2016-06-18 00:16:36 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|