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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
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
|