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