Merge pull request #7477 from mitchellh/sethvargo/sym

Use symbols for defining guest capabilities
This commit is contained in:
Seth Vargo 2016-06-17 19:57:38 -04:00 committed by GitHub
commit d0006d189b
28 changed files with 195 additions and 195 deletions

View File

@ -6,17 +6,17 @@ module VagrantPlugins
name "Arch guest" name "Arch guest"
description "Arch guest support." description "Arch guest support."
guest("arch", "linux") do guest(:arch, :linux) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("arch", "change_host_name") do guest_capability(:arch, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("arch", "configure_networks") do guest_capability(:arch, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end

View File

@ -6,17 +6,17 @@ module VagrantPlugins
name "Atomic Host guest" name "Atomic Host guest"
description "Atomic Host guest support." description "Atomic Host guest support."
guest("atomic", "fedora") do guest(:atomic, :fedora) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("atomic", "change_host_name") do guest_capability(:atomic, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("atomic", "docker_daemon_running") do guest_capability(:atomic, :docker_daemon_running) do
require_relative "cap/docker" require_relative "cap/docker"
Cap::Docker Cap::Docker
end end

View File

@ -6,22 +6,22 @@ module VagrantPlugins
name "CoreOS guest" name "CoreOS guest"
description "CoreOS guest support." description "CoreOS guest support."
guest("coreos", "linux") do guest(:coreos, :linux) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("coreos", "change_host_name") do guest_capability(:coreos, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("coreos", "configure_networks") do guest_capability(:coreos, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("coreos", "docker_daemon_running") do guest_capability(:coreos, :docker_daemon_running) do
require_relative "cap/docker" require_relative "cap/docker"
Cap::Docker Cap::Docker
end end

View File

@ -6,82 +6,82 @@ module VagrantPlugins
name "Darwin guest" name "Darwin guest"
description "Darwin guest support." description "Darwin guest support."
guest("darwin") do guest(:darwin) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("darwin", "change_host_name") do guest_capability(:darwin, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("darwin", "choose_addressable_ip_addr") do guest_capability(:darwin, :choose_addressable_ip_addr) do
require_relative "cap/choose_addressable_ip_addr" require_relative "cap/choose_addressable_ip_addr"
Cap::ChooseAddressableIPAddr Cap::ChooseAddressableIPAddr
end end
guest_capability("darwin", "configure_networks") do guest_capability(:darwin, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("darwin", "halt") do guest_capability(:darwin, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("darwin", "insert_public_key") do guest_capability(:darwin, :insert_public_key) do
require_relative "cap/insert_public_key" require_relative "cap/insert_public_key"
Cap::InsertPublicKey Cap::InsertPublicKey
end end
guest_capability("darwin", "mount_nfs_folder") do guest_capability(:darwin, :mount_nfs_folder) do
require_relative "cap/mount_nfs_folder" require_relative "cap/mount_nfs_folder"
Cap::MountNFSFolder Cap::MountNFSFolder
end end
guest_capability("darwin", "mount_smb_shared_folder") do guest_capability(:darwin, :mount_smb_shared_folder) do
require_relative "cap/mount_smb_shared_folder" require_relative "cap/mount_smb_shared_folder"
Cap::MountSMBSharedFolder Cap::MountSMBSharedFolder
end end
guest_capability("darwin", "mount_vmware_shared_folder") do guest_capability(:darwin, :mount_vmware_shared_folder) do
require_relative "cap/mount_vmware_shared_folder" require_relative "cap/mount_vmware_shared_folder"
Cap::MountVmwareSharedFolder Cap::MountVmwareSharedFolder
end end
guest_capability("darwin", "remove_public_key") do guest_capability(:darwin, :remove_public_key) do
require_relative "cap/remove_public_key" require_relative "cap/remove_public_key"
Cap::RemovePublicKey Cap::RemovePublicKey
end end
guest_capability("darwin", "rsync_installed") do guest_capability(:darwin, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("darwin", "rsync_command") do guest_capability(:darwin, :rsync_command) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("darwin", "rsync_post") do guest_capability(:darwin, :rsync_post) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("darwin", "rsync_pre") do guest_capability(:darwin, :rsync_pre) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("darwin", "shell_expand_guest_path") do guest_capability(:darwin, :shell_expand_guest_path) do
require_relative "cap/shell_expand_guest_path" require_relative "cap/shell_expand_guest_path"
Cap::ShellExpandGuestPath Cap::ShellExpandGuestPath
end end
guest_capability("darwin", "verify_vmware_hgfs") do guest_capability(:darwin, :verify_vmware_hgfs) do
require_relative "cap/verify_vmware_hgfs" require_relative "cap/verify_vmware_hgfs"
Cap::VerifyVmwareHgfs Cap::VerifyVmwareHgfs
end end

View File

@ -6,32 +6,32 @@ module VagrantPlugins
name "Debian guest" name "Debian guest"
description "Debian guest support." description "Debian guest support."
guest("debian", "linux") do guest(:debian, :linux) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("debian", "configure_networks") do guest_capability(:debian, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("debian", "change_host_name") do guest_capability(:debian, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("debian", "nfs_client_install") do guest_capability(:debian, :nfs_client_install) do
require_relative "cap/nfs_client" require_relative "cap/nfs_client"
Cap::NFSClient Cap::NFSClient
end end
guest_capability("debian", "rsync_install") do guest_capability(:debian, :rsync_install) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("debian", "smb_install") do guest_capability(:debian, :smb_install) do
require_relative "cap/smb" require_relative "cap/smb"
Cap::SMB Cap::SMB
end end

View File

@ -6,27 +6,27 @@ module VagrantPlugins
name "ESXi guest." name "ESXi guest."
description "ESXi guest support." description "ESXi guest support."
guest("esxi") do guest(:esxi) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("esxi", "change_host_name") do guest_capability(:esxi, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("esxi", "configure_networks") do guest_capability(:esxi, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("esxi", "mount_nfs_folder") do guest_capability(:esxi, :mount_nfs_folder) do
require_relative "cap/mount_nfs_folder" require_relative "cap/mount_nfs_folder"
Cap::MountNFSFolder Cap::MountNFSFolder
end end
guest_capability("esxi", "halt") do guest_capability(:esxi, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end

View File

@ -6,27 +6,27 @@ module VagrantPlugins
name "Fedora guest" name "Fedora guest"
description "Fedora guest support." description "Fedora guest support."
guest("fedora", "redhat") do guest(:fedora, :redhat) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("fedora", "change_host_name") do guest_capability(:fedora, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("fedora", "configure_networks") do guest_capability(:fedora, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("fedora", "network_scripts_dir") do guest_capability(:fedora, :network_scripts_dir) do
require_relative "cap/network_scripts_dir" require_relative "cap/network_scripts_dir"
Cap::NetworkScriptsDir Cap::NetworkScriptsDir
end end
guest_capability("fedora", "flavor") do guest_capability(:fedora, :flavor) do
require_relative "cap/flavor" require_relative "cap/flavor"
Cap::Flavor Cap::Flavor
end end

View File

@ -6,67 +6,67 @@ module VagrantPlugins
name "FreeBSD guest" name "FreeBSD guest"
description "FreeBSD guest support." description "FreeBSD guest support."
guest("freebsd") do guest(:freebsd) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("freebsd", "change_host_name") do guest_capability(:freebsd, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("freebsd", "configure_networks") do guest_capability(:freebsd, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("freebsd", "halt") do guest_capability(:freebsd, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("freebsd", "insert_public_key") do guest_capability(:freebsd, :insert_public_key) do
require_relative "cap/insert_public_key" require_relative "cap/insert_public_key"
Cap::InsertPublicKey Cap::InsertPublicKey
end end
guest_capability("freebsd", "mount_nfs_folder") do guest_capability(:freebsd, :mount_nfs_folder) do
require_relative "cap/mount_nfs_folder" require_relative "cap/mount_nfs_folder"
Cap::MountNFSFolder Cap::MountNFSFolder
end end
guest_capability("freebsd", "remove_public_key") do guest_capability(:freebsd, :remove_public_key) do
require_relative "cap/remove_public_key" require_relative "cap/remove_public_key"
Cap::RemovePublicKey Cap::RemovePublicKey
end end
guest_capability("freebsd", "rsync_install") do guest_capability(:freebsd, :rsync_install) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("freebsd", "rsync_installed") do guest_capability(:freebsd, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("freebsd", "rsync_command") do guest_capability(:freebsd, :rsync_command) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("freebsd", "rsync_post") do guest_capability(:freebsd, :rsync_post) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("freebsd", "rsync_pre") do guest_capability(:freebsd, :rsync_pre) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("freebsd", "shell_expand_guest_path") do guest_capability(:freebsd, :shell_expand_guest_path) do
require_relative "cap/shell_expand_guest_path" require_relative "cap/shell_expand_guest_path"
Cap::ShellExpandGuestPath Cap::ShellExpandGuestPath
end end

View File

@ -6,17 +6,17 @@ module VagrantPlugins
name "Funtoo guest" name "Funtoo guest"
description "Funtoo guest support." description "Funtoo guest support."
guest("funtoo", "linux") do guest(:funtoo, :linux) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("funtoo", "change_host_name") do guest_capability(:funtoo, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("funtoo", "configure_networks") do guest_capability(:funtoo, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end

View File

@ -6,17 +6,17 @@ module VagrantPlugins
name "Gentoo guest" name "Gentoo guest"
description "Gentoo guest support." description "Gentoo guest support."
guest("gentoo", "linux") do guest(:gentoo, :linux) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("gentoo", "change_host_name") do guest_capability(:gentoo, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("gentoo", "configure_networks") do guest_capability(:gentoo, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end

View File

@ -6,88 +6,88 @@ module VagrantPlugins
name "Linux guest." name "Linux guest."
description "Linux guest support." description "Linux guest support."
guest("linux") do guest(:linux) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("linux", "choose_addressable_ip_addr") do guest_capability(:linux, :choose_addressable_ip_addr) do
require_relative "cap/choose_addressable_ip_addr" require_relative "cap/choose_addressable_ip_addr"
Cap::ChooseAddressableIPAddr Cap::ChooseAddressableIPAddr
end end
guest_capability("linux", "halt") do guest_capability(:linux, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("linux", "insert_public_key") do guest_capability(:linux, :insert_public_key) do
require_relative "cap/insert_public_key" require_relative "cap/insert_public_key"
Cap::InsertPublicKey Cap::InsertPublicKey
end end
guest_capability("linux", "shell_expand_guest_path") do guest_capability(:linux, :shell_expand_guest_path) do
require_relative "cap/shell_expand_guest_path" require_relative "cap/shell_expand_guest_path"
Cap::ShellExpandGuestPath Cap::ShellExpandGuestPath
end end
guest_capability("linux", "mount_nfs_folder") do guest_capability(:linux, :mount_nfs_folder) do
require_relative "cap/mount_nfs" require_relative "cap/mount_nfs"
Cap::MountNFS Cap::MountNFS
end end
guest_capability("linux", "mount_smb_shared_folder") do guest_capability(:linux, :mount_smb_shared_folder) do
require_relative "cap/mount_smb_shared_folder" require_relative "cap/mount_smb_shared_folder"
Cap::MountSMBSharedFolder Cap::MountSMBSharedFolder
end end
guest_capability("linux", "mount_virtualbox_shared_folder") do guest_capability(:linux, :mount_virtualbox_shared_folder) do
require_relative "cap/mount_virtualbox_shared_folder" require_relative "cap/mount_virtualbox_shared_folder"
Cap::MountVirtualBoxSharedFolder Cap::MountVirtualBoxSharedFolder
end end
guest_capability("linux", "nfs_client_installed") do guest_capability(:linux, :nfs_client_installed) do
require_relative "cap/nfs_client" require_relative "cap/nfs_client"
Cap::NFSClient Cap::NFSClient
end end
# For the Docker provider # For the Docker provider
guest_capability("linux", "port_open_check") do guest_capability(:linux, :port_open_check) do
require_relative "cap/port" require_relative "cap/port"
Cap::Port Cap::Port
end end
guest_capability("linux", "read_ip_address") do guest_capability(:linux, :read_ip_address) do
require_relative "cap/read_ip_address" require_relative "cap/read_ip_address"
Cap::ReadIPAddress Cap::ReadIPAddress
end end
guest_capability("linux", "remove_public_key") do guest_capability(:linux, :remove_public_key) do
require_relative "cap/remove_public_key" require_relative "cap/remove_public_key"
Cap::RemovePublicKey Cap::RemovePublicKey
end end
guest_capability("linux", "rsync_installed") do guest_capability(:linux, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("linux", "rsync_command") do guest_capability(:linux, :rsync_command) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("linux", "rsync_post") do guest_capability(:linux, :rsync_post) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("linux", "rsync_pre") do guest_capability(:linux, :rsync_pre) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("linux", "unmount_virtualbox_shared_folder") do guest_capability(:linux, :unmount_virtualbox_shared_folder) do
require_relative "cap/mount_virtualbox_shared_folder" require_relative "cap/mount_virtualbox_shared_folder"
Cap::MountVirtualBoxSharedFolder Cap::MountVirtualBoxSharedFolder
end end

View File

@ -6,7 +6,7 @@ module VagrantPlugins
name "Mint guest" name "Mint guest"
description "Mint guest support." description "Mint guest support."
guest("mint", "ubuntu") do guest(:mint, :ubuntu) do
require_relative "guest" require_relative "guest"
Guest Guest
end end

View File

@ -6,67 +6,67 @@ module VagrantPlugins
name "NetBSD guest" name "NetBSD guest"
description "NetBSD guest support." description "NetBSD guest support."
guest("netbsd") do guest(:netbsd) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("netbsd", "change_host_name") do guest_capability(:netbsd, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("netbsd", "configure_networks") do guest_capability(:netbsd, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("netbsd", "halt") do guest_capability(:netbsd, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("netbsd", "insert_public_key") do guest_capability(:netbsd, :insert_public_key) do
require_relative "cap/insert_public_key" require_relative "cap/insert_public_key"
Cap::InsertPublicKey Cap::InsertPublicKey
end end
guest_capability("netbsd", "mount_nfs_folder") do guest_capability(:netbsd, :mount_nfs_folder) do
require_relative "cap/mount_nfs_folder" require_relative "cap/mount_nfs_folder"
Cap::MountNFSFolder Cap::MountNFSFolder
end end
guest_capability("netbsd", "remove_public_key") do guest_capability(:netbsd, :remove_public_key) do
require_relative "cap/remove_public_key" require_relative "cap/remove_public_key"
Cap::RemovePublicKey Cap::RemovePublicKey
end end
guest_capability("netbsd", "rsync_install") do guest_capability(:netbsd, :rsync_install) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("netbsd", "rsync_installed") do guest_capability(:netbsd, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("netbsd", "rsync_command") do guest_capability(:netbsd, :rsync_command) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("netbsd", "rsync_post") do guest_capability(:netbsd, :rsync_post) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("netbsd", "rsync_pre") do guest_capability(:netbsd, :rsync_pre) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("netbsd", "shell_expand_guest_path") do guest_capability(:netbsd, :shell_expand_guest_path) do
require_relative "cap/shell_expand_guest_path" require_relative "cap/shell_expand_guest_path"
Cap::ShellExpandGuestPath Cap::ShellExpandGuestPath
end end

View File

@ -6,22 +6,22 @@ module VagrantPlugins
name "NixOS guest" name "NixOS guest"
description "NixOS guest support." description "NixOS guest support."
guest("nixos", "linux") do guest(:nixos, :linux) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("nixos", "configure_networks") do guest_capability(:nixos, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("nixos", "change_host_name") do guest_capability(:nixos, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("nixos", "nfs_client_installed") do guest_capability(:nixos, :nfs_client_installed) do
require_relative "cap/nfs_client" require_relative "cap/nfs_client"
Cap::NFSClient Cap::NFSClient
end end

View File

@ -6,22 +6,22 @@ module VagrantPlugins
name "OmniOS guest." name "OmniOS guest."
description "OmniOS guest support." description "OmniOS guest support."
guest("omnios", "solaris") do guest(:omnios, :solaris) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("omnios", "change_host_name") do guest_capability(:omnios, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("omnios", "mount_nfs_folder") do guest_capability(:omnios, :mount_nfs_folder) do
require_relative "cap/mount_nfs_folder" require_relative "cap/mount_nfs_folder"
Cap::MountNFSFolder Cap::MountNFSFolder
end end
guest_capability("omnios", "rsync_install") do guest_capability(:omnios, :rsync_install) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end

View File

@ -6,67 +6,67 @@ module VagrantPlugins
name "OpenBSD guest" name "OpenBSD guest"
description "OpenBSD guest support." description "OpenBSD guest support."
guest("openbsd") do guest(:openbsd) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("openbsd", "change_host_name") do guest_capability(:openbsd, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("openbsd", "configure_networks") do guest_capability(:openbsd, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("openbsd", "halt") do guest_capability(:openbsd, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("openbsd", "insert_public_key") do guest_capability(:openbsd, :insert_public_key) do
require_relative "cap/insert_public_key" require_relative "cap/insert_public_key"
Cap::InsertPublicKey Cap::InsertPublicKey
end end
guest_capability("openbsd", "mount_nfs_folder") do guest_capability(:openbsd, :mount_nfs_folder) do
require_relative "cap/mount_nfs_folder" require_relative "cap/mount_nfs_folder"
Cap::MountNFSFolder Cap::MountNFSFolder
end end
guest_capability("openbsd", "remove_public_key") do guest_capability(:openbsd, :remove_public_key) do
require_relative "cap/remove_public_key" require_relative "cap/remove_public_key"
Cap::RemovePublicKey Cap::RemovePublicKey
end end
guest_capability("openbsd", "rsync_install") do guest_capability(:openbsd, :rsync_install) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("openbsd", "rsync_installed") do guest_capability(:openbsd, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("openbsd", "rsync_command") do guest_capability(:openbsd, :rsync_command) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("openbsd", "rsync_post") do guest_capability(:openbsd, :rsync_post) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("openbsd", "rsync_pre") do guest_capability(:openbsd, :rsync_pre) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("openbsd", "shell_expand_guest_path") do guest_capability(:openbsd, :shell_expand_guest_path) do
require_relative "cap/shell_expand_guest_path" require_relative "cap/shell_expand_guest_path"
Cap::ShellExpandGuestPath Cap::ShellExpandGuestPath
end end

View File

@ -6,22 +6,22 @@ module VagrantPlugins
name "VMware Photon guest" name "VMware Photon guest"
description "VMware Photon guest support." description "VMware Photon guest support."
guest("photon", "linux") do guest(:photon, :linux) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("photon", "change_host_name") do guest_capability(:photon, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("photon", "configure_networks") do guest_capability(:photon, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("photon", "docker_daemon_running") do guest_capability(:photon, :docker_daemon_running) do
require_relative "cap/docker" require_relative "cap/docker"
Cap::Docker Cap::Docker
end end

View File

@ -6,22 +6,22 @@ module VagrantPlugins
name "PLD Linux guest" name "PLD Linux guest"
description "PLD Linux guest support." description "PLD Linux guest support."
guest("pld", "redhat") do guest(:pld, :redhat) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("pld", "change_host_name") do guest_capability(:pld, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("pld", "network_scripts_dir") do guest_capability(:pld, :network_scripts_dir) do
require_relative "cap/network_scripts_dir" require_relative "cap/network_scripts_dir"
Cap::NetworkScriptsDir Cap::NetworkScriptsDir
end end
guest_capability("pld", "flavor") do guest_capability(:pld, :flavor) do
require_relative "cap/flavor" require_relative "cap/flavor"
Cap::Flavor Cap::Flavor
end end

View File

@ -6,37 +6,37 @@ module VagrantPlugins
name "Red Hat Enterprise Linux guest" name "Red Hat Enterprise Linux guest"
description "Red Hat Enterprise Linux guest support." description "Red Hat Enterprise Linux guest support."
guest("redhat", "linux") do guest(:redhat, :linux) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("redhat", "change_host_name") do guest_capability(:redhat, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("redhat", "configure_networks") do guest_capability(:redhat, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("redhat", "flavor") do guest_capability(:redhat, :flavor) do
require_relative "cap/flavor" require_relative "cap/flavor"
Cap::Flavor Cap::Flavor
end end
guest_capability("redhat", "network_scripts_dir") do guest_capability(:redhat, :network_scripts_dir) do
require_relative "cap/network_scripts_dir" require_relative "cap/network_scripts_dir"
Cap::NetworkScriptsDir Cap::NetworkScriptsDir
end end
guest_capability("redhat", "nfs_client_install") do guest_capability(:redhat, :nfs_client_install) do
require_relative "cap/nfs_client" require_relative "cap/nfs_client"
Cap::NFSClient Cap::NFSClient
end end
guest_capability("redhat", "rsync_install") do guest_capability(:redhat, :rsync_install) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end

View File

@ -6,17 +6,17 @@ module VagrantPlugins
name "Slackware guest" name "Slackware guest"
description "Slackware guest support." description "Slackware guest support."
guest("slackware", "linux") do guest(:slackware, :linux) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("slackware", "change_host_name") do guest_capability(:slackware, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("slackware", "configure_networks") do guest_capability(:slackware, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end

View File

@ -6,52 +6,52 @@ module VagrantPlugins
name "SmartOS guest." name "SmartOS guest."
description "SmartOS guest support." description "SmartOS guest support."
config("smartos") do config(:smartos) do
require File.expand_path("../config", __FILE__) require_relative "config"
Config Config
end end
guest("smartos") do guest(:smartos) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("smartos", "change_host_name") do guest_capability(:smartos, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("smartos", "configure_networks") do guest_capability(:smartos, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("smartos", "halt") do guest_capability(:smartos, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("smartos", "mount_nfs_folder") do guest_capability(:smartos, :mount_nfs_folder) do
require_relative "cap/mount_nfs" require_relative "cap/mount_nfs"
Cap::MountNFS Cap::MountNFS
end end
guest_capability("smartos", "rsync_installed") do guest_capability(:smartos, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("smartos", "rsync_command") do guest_capability(:smartos, :rsync_command) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("smartos", "rsync_post") do guest_capability(:smartos, :rsync_post) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("smartos", "rsync_pre") do guest_capability(:smartos, :rsync_pre) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end

View File

@ -6,62 +6,62 @@ module VagrantPlugins
name "Solaris guest." name "Solaris guest."
description "Solaris guest support." description "Solaris guest support."
config("solaris") do config(:solaris) do
require File.expand_path("../config", __FILE__) require_relative "config"
Config Config
end end
guest("solaris") do guest(:solaris) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("solaris", "change_host_name") do guest_capability(:solaris, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("solaris", "configure_networks") do guest_capability(:solaris, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("solaris", "insert_public_key") do guest_capability(:solaris, :insert_public_key) do
require_relative "cap/insert_public_key" require_relative "cap/insert_public_key"
Cap::InsertPublicKey Cap::InsertPublicKey
end end
guest_capability("solaris", "halt") do guest_capability(:solaris, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("solaris", "mount_virtualbox_shared_folder") do guest_capability(:solaris, :mount_virtualbox_shared_folder) do
require_relative "cap/mount_virtualbox_shared_folder" require_relative "cap/mount_virtualbox_shared_folder"
Cap::MountVirtualBoxSharedFolder Cap::MountVirtualBoxSharedFolder
end end
guest_capability("solaris", "remove_public_key") do guest_capability(:solaris, :remove_public_key) do
require_relative "cap/remove_public_key" require_relative "cap/remove_public_key"
Cap::RemovePublicKey Cap::RemovePublicKey
end end
guest_capability("solaris", "rsync_installed") do guest_capability(:solaris, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("solaris", "rsync_command") do guest_capability(:solaris, :rsync_command) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("solaris", "rsync_post") do guest_capability(:solaris, :rsync_post) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("solaris", "rsync_pre") do guest_capability(:solaris, :rsync_pre) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end

View File

@ -10,52 +10,52 @@ module VagrantPlugins
name "Solaris 11 guest." name "Solaris 11 guest."
description "Solaris 11 guest support." description "Solaris 11 guest support."
config("solaris11") do config(:solaris11) do
require File.expand_path("../config", __FILE__) require_relative "config"
Config Config
end end
guest("solaris11") do guest(:solaris11) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("solaris11", "change_host_name") do guest_capability(:solaris11, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("solaris11", "configure_networks") do guest_capability(:solaris11, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("solaris11", "halt") do guest_capability(:solaris11, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("solaris11", "mount_virtualbox_shared_folder") do guest_capability(:solaris11, :mount_virtualbox_shared_folder) do
require_relative "cap/mount_virtualbox_shared_folder" require_relative "cap/mount_virtualbox_shared_folder"
Cap::MountVirtualBoxSharedFolder Cap::MountVirtualBoxSharedFolder
end end
guest_capability("solaris11", "rsync_installed") do guest_capability(:solaris11, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("solaris11", "rsync_pre") do guest_capability(:solaris11, :rsync_pre) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("solaris11", "insert_public_key") do guest_capability(:solaris11, :insert_public_key) do
require_relative "cap/insert_public_key" require_relative "cap/insert_public_key"
Cap::InsertPublicKey Cap::InsertPublicKey
end end
guest_capability("solaris11", "remove_public_key") do guest_capability(:solaris11, :remove_public_key) do
require_relative "cap/remove_public_key" require_relative "cap/remove_public_key"
Cap::RemovePublicKey Cap::RemovePublicKey
end end

View File

@ -6,42 +6,42 @@ module VagrantPlugins
name "SUSE guest" name "SUSE guest"
description "SUSE guest support." description "SUSE guest support."
guest("suse", "linux") do guest(:suse, :linux) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("suse", "change_host_name") do guest_capability(:suse, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("suse", "configure_networks") do guest_capability(:suse, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("suse", "halt") do guest_capability(:suse, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("suse", "network_scripts_dir") do guest_capability(:suse, :network_scripts_dir) do
require_relative "cap/network_scripts_dir" require_relative "cap/network_scripts_dir"
Cap::NetworkScriptsDir Cap::NetworkScriptsDir
end end
guest_capability("suse", "nfs_client_install") do guest_capability(:suse, :nfs_client_install) do
require_relative "cap/nfs_client" require_relative "cap/nfs_client"
Cap::NFSClient Cap::NFSClient
end end
guest_capability("suse", "rsync_install") do guest_capability(:suse, :rsync_install) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("suse", "rsync_installed") do guest_capability(:suse, :rsync_installed) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end

View File

@ -6,32 +6,32 @@ module VagrantPlugins
name "TinyCore Linux guest." name "TinyCore Linux guest."
description "TinyCore Linux guest support." description "TinyCore Linux guest support."
guest("tinycore", "linux") do guest(:tinycore, :linux) do
require File.expand_path("../guest", __FILE__) require_relative "guest"
Guest Guest
end end
guest_capability("tinycore", "configure_networks") do guest_capability(:tinycore, :configure_networks) do
require_relative "cap/configure_networks" require_relative "cap/configure_networks"
Cap::ConfigureNetworks Cap::ConfigureNetworks
end end
guest_capability("tinycore", "change_host_name") do guest_capability(:tinycore, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end
guest_capability("tinycore", "halt") do guest_capability(:tinycore, :halt) do
require_relative "cap/halt" require_relative "cap/halt"
Cap::Halt Cap::Halt
end end
guest_capability("tinycore", "rsync_install") do guest_capability(:tinycore, :rsync_install) do
require_relative "cap/rsync" require_relative "cap/rsync"
Cap::RSync Cap::RSync
end end
guest_capability("tinycore", "mount_nfs_folder") do guest_capability(:tinycore, :mount_nfs_folder) do
require_relative "cap/mount_nfs" require_relative "cap/mount_nfs"
Cap::MountNFS Cap::MountNFS
end end

View File

@ -6,7 +6,7 @@ module VagrantPlugins
name "Trisquel guest" name "Trisquel guest"
description "Trisquel guest support." description "Trisquel guest support."
guest("trisquel", "ubuntu") do guest(:trisquel, :ubuntu) do
require_relative "guest" require_relative "guest"
Guest Guest
end end

View File

@ -6,12 +6,12 @@ module VagrantPlugins
name "Ubuntu guest" name "Ubuntu guest"
description "Ubuntu guest support." description "Ubuntu guest support."
guest("ubuntu", "debian") do guest(:ubuntu, :debian) do
require_relative "guest" require_relative "guest"
Guest Guest
end end
guest_capability("ubuntu", "change_host_name") do guest_capability(:ubuntu, :change_host_name) do
require_relative "cap/change_host_name" require_relative "cap/change_host_name"
Cap::ChangeHostName Cap::ChangeHostName
end end

View File

@ -8,12 +8,12 @@ module VagrantPlugins
name "Windows guest." name "Windows guest."
description "Windows guest support." description "Windows guest support."
config("windows") do config(:windows) do
require_relative "config" require_relative "config"
Config Config
end end
guest("windows") do guest(:windows) do
require_relative "guest" require_relative "guest"
init! init!
Guest Guest