2013-07-11 01:21:06 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
2013-08-06 01:07:45 +00:00
|
|
|
module GuestDarwin
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "Darwin guest"
|
|
|
|
description "Darwin guest support."
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2016-06-18 00:16:36 +00:00
|
|
|
guest(:darwin, :bsd) do
|
2016-05-31 05:12:12 +00:00
|
|
|
require_relative "guest"
|
2013-08-06 01:07:45 +00:00
|
|
|
Guest
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :change_host_name) do
|
2013-08-06 01:07:45 +00:00
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :choose_addressable_ip_addr) do
|
2015-05-24 10:39:28 +00:00
|
|
|
require_relative "cap/choose_addressable_ip_addr"
|
|
|
|
Cap::ChooseAddressableIPAddr
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :configure_networks) do
|
2013-08-06 01:07:45 +00:00
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :halt) do
|
2013-08-06 01:07:45 +00:00
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :mount_smb_shared_folder) do
|
2015-05-24 10:39:28 +00:00
|
|
|
require_relative "cap/mount_smb_shared_folder"
|
|
|
|
Cap::MountSMBSharedFolder
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :mount_vmware_shared_folder) do
|
2013-08-06 14:17:12 +00:00
|
|
|
require_relative "cap/mount_vmware_shared_folder"
|
|
|
|
Cap::MountVmwareSharedFolder
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :rsync_installed) do
|
2014-01-31 03:26:43 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :rsync_command) do
|
2014-04-25 19:00:12 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :rsync_post) do
|
2014-01-31 03:26:43 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :rsync_pre) do
|
2014-05-07 01:40:55 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :shell_expand_guest_path) do
|
2013-08-06 01:07:45 +00:00
|
|
|
require_relative "cap/shell_expand_guest_path"
|
|
|
|
Cap::ShellExpandGuestPath
|
|
|
|
end
|
2013-08-09 19:00:38 +00:00
|
|
|
|
2016-06-17 23:45:20 +00:00
|
|
|
guest_capability(:darwin, :verify_vmware_hgfs) do
|
2013-08-09 19:00:38 +00:00
|
|
|
require_relative "cap/verify_vmware_hgfs"
|
|
|
|
Cap::VerifyVmwareHgfs
|
|
|
|
end
|
2013-08-06 01:07:45 +00:00
|
|
|
end
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
end
|