2012-04-19 00:38:20 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestLinux
|
2012-11-07 05:14:45 +00:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
2012-04-19 00:38:20 +00:00
|
|
|
name "Linux guest."
|
|
|
|
description "Linux guest support."
|
2012-04-19 04:03:03 +00:00
|
|
|
|
2012-05-23 22:57:43 +00:00
|
|
|
guest("linux") do
|
|
|
|
require File.expand_path("../guest", __FILE__)
|
|
|
|
Guest
|
|
|
|
end
|
2013-04-04 06:01:43 +00:00
|
|
|
|
2013-04-04 06:33:20 +00:00
|
|
|
guest_capability("linux", "halt") do
|
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
|
|
|
|
2013-04-04 06:01:43 +00:00
|
|
|
guest_capability("linux", "shell_expand_guest_path") do
|
|
|
|
require_relative "cap/shell_expand_guest_path"
|
|
|
|
Cap::ShellExpandGuestPath
|
|
|
|
end
|
|
|
|
|
2013-04-04 06:33:20 +00:00
|
|
|
guest_capability("linux", "mount_nfs_folder") do
|
|
|
|
require_relative "cap/mount_nfs"
|
|
|
|
Cap::MountNFS
|
|
|
|
end
|
|
|
|
|
2013-04-04 06:01:43 +00:00
|
|
|
guest_capability("linux", "mount_virtualbox_shared_folder") do
|
|
|
|
require_relative "cap/mount_virtualbox_shared_folder"
|
|
|
|
Cap::MountVirtualBoxSharedFolder
|
|
|
|
end
|
2013-04-08 22:30:41 +00:00
|
|
|
|
|
|
|
guest_capability("linux", "read_ip_address") do
|
|
|
|
require_relative "cap/read_ip_address"
|
|
|
|
Cap::ReadIPAddress
|
|
|
|
end
|
2012-04-19 00:38:20 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|