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
|
|
|
|
2013-08-06 01:07:45 +00:00
|
|
|
guest("darwin") do
|
|
|
|
require File.expand_path("../guest", __FILE__)
|
|
|
|
Guest
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2013-08-06 01:07:45 +00:00
|
|
|
guest_capability("darwin", "change_host_name") do
|
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2015-05-24 10:39:28 +00:00
|
|
|
guest_capability("darwin", "choose_addressable_ip_addr") do
|
|
|
|
require_relative "cap/choose_addressable_ip_addr"
|
|
|
|
Cap::ChooseAddressableIPAddr
|
|
|
|
end
|
|
|
|
|
2013-08-06 01:07:45 +00:00
|
|
|
guest_capability("darwin", "configure_networks") do
|
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2013-08-06 01:07:45 +00:00
|
|
|
guest_capability("darwin", "halt") do
|
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
2013-07-11 01:21:06 +00:00
|
|
|
|
2015-02-11 17:21:23 +00:00
|
|
|
guest_capability("darwin", "insert_public_key") do
|
|
|
|
require_relative "cap/insert_public_key"
|
|
|
|
Cap::InsertPublicKey
|
|
|
|
end
|
|
|
|
|
2013-08-06 01:07:45 +00:00
|
|
|
guest_capability("darwin", "mount_nfs_folder") do
|
|
|
|
require_relative "cap/mount_nfs_folder"
|
|
|
|
Cap::MountNFSFolder
|
|
|
|
end
|
2013-08-06 00:39:44 +00:00
|
|
|
|
2015-05-24 10:39:28 +00:00
|
|
|
guest_capability("darwin", "mount_smb_shared_folder") do
|
|
|
|
require_relative "cap/mount_smb_shared_folder"
|
|
|
|
Cap::MountSMBSharedFolder
|
|
|
|
end
|
|
|
|
|
2013-08-06 14:17:12 +00:00
|
|
|
guest_capability("darwin", "mount_vmware_shared_folder") do
|
|
|
|
require_relative "cap/mount_vmware_shared_folder"
|
|
|
|
Cap::MountVmwareSharedFolder
|
|
|
|
end
|
|
|
|
|
2015-02-11 17:21:23 +00:00
|
|
|
guest_capability("darwin", "remove_public_key") do
|
|
|
|
require_relative "cap/remove_public_key"
|
|
|
|
Cap::RemovePublicKey
|
|
|
|
end
|
|
|
|
|
2014-01-31 03:26:43 +00:00
|
|
|
guest_capability("darwin", "rsync_installed") do
|
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2014-04-25 19:00:12 +00:00
|
|
|
guest_capability("darwin", "rsync_command") do
|
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
|
|
|
guest_capability("darwin", "rsync_post") do
|
2014-01-31 03:26:43 +00:00
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2014-05-07 01:40:55 +00:00
|
|
|
guest_capability("darwin", "rsync_pre") do
|
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
|
|
|
|
2013-08-06 01:07:45 +00:00
|
|
|
guest_capability("darwin", "shell_expand_guest_path") do
|
|
|
|
require_relative "cap/shell_expand_guest_path"
|
|
|
|
Cap::ShellExpandGuestPath
|
|
|
|
end
|
2013-08-09 19:00:38 +00:00
|
|
|
|
|
|
|
guest_capability("darwin", "verify_vmware_hgfs") do
|
|
|
|
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
|