Use symbols for defining guest capabilities
This commit is contained in:
parent
2ffcadc7b8
commit
b29864f450
|
@ -6,17 +6,17 @@ module VagrantPlugins
|
|||
name "Arch guest"
|
||||
description "Arch guest support."
|
||||
|
||||
guest("arch", "linux") do
|
||||
guest(:arch, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("arch", "change_host_name") do
|
||||
guest_capability(:arch, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("arch", "configure_networks") do
|
||||
guest_capability(:arch, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
|
|
@ -6,17 +6,17 @@ module VagrantPlugins
|
|||
name "Atomic Host guest"
|
||||
description "Atomic Host guest support."
|
||||
|
||||
guest("atomic", "fedora") do
|
||||
guest(:atomic, :fedora) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("atomic", "change_host_name") do
|
||||
guest_capability(:atomic, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("atomic", "docker_daemon_running") do
|
||||
guest_capability(:atomic, :docker_daemon_running) do
|
||||
require_relative "cap/docker"
|
||||
Cap::Docker
|
||||
end
|
||||
|
|
|
@ -6,22 +6,22 @@ module VagrantPlugins
|
|||
name "CoreOS guest"
|
||||
description "CoreOS guest support."
|
||||
|
||||
guest("coreos", "linux") do
|
||||
guest(:coreos, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("coreos", "change_host_name") do
|
||||
guest_capability(:coreos, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("coreos", "configure_networks") do
|
||||
guest_capability(:coreos, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("coreos", "docker_daemon_running") do
|
||||
guest_capability(:coreos, :docker_daemon_running) do
|
||||
require_relative "cap/docker"
|
||||
Cap::Docker
|
||||
end
|
||||
|
|
|
@ -6,82 +6,82 @@ module VagrantPlugins
|
|||
name "Darwin guest"
|
||||
description "Darwin guest support."
|
||||
|
||||
guest("darwin") do
|
||||
guest(:darwin) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("darwin", "change_host_name") do
|
||||
guest_capability(:darwin, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("darwin", "choose_addressable_ip_addr") do
|
||||
guest_capability(:darwin, :choose_addressable_ip_addr) do
|
||||
require_relative "cap/choose_addressable_ip_addr"
|
||||
Cap::ChooseAddressableIPAddr
|
||||
end
|
||||
|
||||
guest_capability("darwin", "configure_networks") do
|
||||
guest_capability(:darwin, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("darwin", "halt") do
|
||||
guest_capability(:darwin, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("darwin", "insert_public_key") do
|
||||
guest_capability(:darwin, :insert_public_key) do
|
||||
require_relative "cap/insert_public_key"
|
||||
Cap::InsertPublicKey
|
||||
end
|
||||
|
||||
guest_capability("darwin", "mount_nfs_folder") do
|
||||
guest_capability(:darwin, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs_folder"
|
||||
Cap::MountNFSFolder
|
||||
end
|
||||
|
||||
guest_capability("darwin", "mount_smb_shared_folder") do
|
||||
guest_capability(:darwin, :mount_smb_shared_folder) do
|
||||
require_relative "cap/mount_smb_shared_folder"
|
||||
Cap::MountSMBSharedFolder
|
||||
end
|
||||
|
||||
guest_capability("darwin", "mount_vmware_shared_folder") do
|
||||
guest_capability(:darwin, :mount_vmware_shared_folder) do
|
||||
require_relative "cap/mount_vmware_shared_folder"
|
||||
Cap::MountVmwareSharedFolder
|
||||
end
|
||||
|
||||
guest_capability("darwin", "remove_public_key") do
|
||||
guest_capability(:darwin, :remove_public_key) do
|
||||
require_relative "cap/remove_public_key"
|
||||
Cap::RemovePublicKey
|
||||
end
|
||||
|
||||
guest_capability("darwin", "rsync_installed") do
|
||||
guest_capability(:darwin, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("darwin", "rsync_command") do
|
||||
guest_capability(:darwin, :rsync_command) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("darwin", "rsync_post") do
|
||||
guest_capability(:darwin, :rsync_post) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("darwin", "rsync_pre") do
|
||||
guest_capability(:darwin, :rsync_pre) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("darwin", "shell_expand_guest_path") do
|
||||
guest_capability(:darwin, :shell_expand_guest_path) do
|
||||
require_relative "cap/shell_expand_guest_path"
|
||||
Cap::ShellExpandGuestPath
|
||||
end
|
||||
|
||||
guest_capability("darwin", "verify_vmware_hgfs") do
|
||||
guest_capability(:darwin, :verify_vmware_hgfs) do
|
||||
require_relative "cap/verify_vmware_hgfs"
|
||||
Cap::VerifyVmwareHgfs
|
||||
end
|
||||
|
|
|
@ -6,32 +6,32 @@ module VagrantPlugins
|
|||
name "Debian guest"
|
||||
description "Debian guest support."
|
||||
|
||||
guest("debian", "linux") do
|
||||
guest(:debian, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("debian", "configure_networks") do
|
||||
guest_capability(:debian, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("debian", "change_host_name") do
|
||||
guest_capability(:debian, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("debian", "nfs_client_install") do
|
||||
guest_capability(:debian, :nfs_client_install) do
|
||||
require_relative "cap/nfs_client"
|
||||
Cap::NFSClient
|
||||
end
|
||||
|
||||
guest_capability("debian", "rsync_install") do
|
||||
guest_capability(:debian, :rsync_install) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("debian", "smb_install") do
|
||||
guest_capability(:debian, :smb_install) do
|
||||
require_relative "cap/smb"
|
||||
Cap::SMB
|
||||
end
|
||||
|
|
|
@ -6,27 +6,27 @@ module VagrantPlugins
|
|||
name "ESXi guest."
|
||||
description "ESXi guest support."
|
||||
|
||||
guest("esxi") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:esxi) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("esxi", "change_host_name") do
|
||||
guest_capability(:esxi, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("esxi", "configure_networks") do
|
||||
guest_capability(:esxi, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("esxi", "mount_nfs_folder") do
|
||||
guest_capability(:esxi, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs_folder"
|
||||
Cap::MountNFSFolder
|
||||
end
|
||||
|
||||
guest_capability("esxi", "halt") do
|
||||
guest_capability(:esxi, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
|
|
@ -6,27 +6,27 @@ module VagrantPlugins
|
|||
name "Fedora guest"
|
||||
description "Fedora guest support."
|
||||
|
||||
guest("fedora", "redhat") do
|
||||
guest(:fedora, :redhat) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("fedora", "change_host_name") do
|
||||
guest_capability(:fedora, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("fedora", "configure_networks") do
|
||||
guest_capability(:fedora, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("fedora", "network_scripts_dir") do
|
||||
guest_capability(:fedora, :network_scripts_dir) do
|
||||
require_relative "cap/network_scripts_dir"
|
||||
Cap::NetworkScriptsDir
|
||||
end
|
||||
|
||||
guest_capability("fedora", "flavor") do
|
||||
guest_capability(:fedora, :flavor) do
|
||||
require_relative "cap/flavor"
|
||||
Cap::Flavor
|
||||
end
|
||||
|
|
|
@ -6,67 +6,67 @@ module VagrantPlugins
|
|||
name "FreeBSD guest"
|
||||
description "FreeBSD guest support."
|
||||
|
||||
guest("freebsd") do
|
||||
guest(:freebsd) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "change_host_name") do
|
||||
guest_capability(:freebsd, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "configure_networks") do
|
||||
guest_capability(:freebsd, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "halt") do
|
||||
guest_capability(:freebsd, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "insert_public_key") do
|
||||
guest_capability(:freebsd, :insert_public_key) do
|
||||
require_relative "cap/insert_public_key"
|
||||
Cap::InsertPublicKey
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "mount_nfs_folder") do
|
||||
guest_capability(:freebsd, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs_folder"
|
||||
Cap::MountNFSFolder
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "remove_public_key") do
|
||||
guest_capability(:freebsd, :remove_public_key) do
|
||||
require_relative "cap/remove_public_key"
|
||||
Cap::RemovePublicKey
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "rsync_install") do
|
||||
guest_capability(:freebsd, :rsync_install) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "rsync_installed") do
|
||||
guest_capability(:freebsd, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "rsync_command") do
|
||||
guest_capability(:freebsd, :rsync_command) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "rsync_post") do
|
||||
guest_capability(:freebsd, :rsync_post) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "rsync_pre") do
|
||||
guest_capability(:freebsd, :rsync_pre) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("freebsd", "shell_expand_guest_path") do
|
||||
guest_capability(:freebsd, :shell_expand_guest_path) do
|
||||
require_relative "cap/shell_expand_guest_path"
|
||||
Cap::ShellExpandGuestPath
|
||||
end
|
||||
|
|
|
@ -6,17 +6,17 @@ module VagrantPlugins
|
|||
name "Funtoo guest"
|
||||
description "Funtoo guest support."
|
||||
|
||||
guest("funtoo", "linux") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:funtoo, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("funtoo", "change_host_name") do
|
||||
guest_capability(:funtoo, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("funtoo", "configure_networks") do
|
||||
guest_capability(:funtoo, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
|
|
@ -6,17 +6,17 @@ module VagrantPlugins
|
|||
name "Gentoo guest"
|
||||
description "Gentoo guest support."
|
||||
|
||||
guest("gentoo", "linux") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:gentoo, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("gentoo", "change_host_name") do
|
||||
guest_capability(:gentoo, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("gentoo", "configure_networks") do
|
||||
guest_capability(:gentoo, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
|
|
@ -6,88 +6,88 @@ module VagrantPlugins
|
|||
name "Linux guest."
|
||||
description "Linux guest support."
|
||||
|
||||
guest("linux") do
|
||||
guest(:linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("linux", "choose_addressable_ip_addr") do
|
||||
guest_capability(:linux, :choose_addressable_ip_addr) do
|
||||
require_relative "cap/choose_addressable_ip_addr"
|
||||
Cap::ChooseAddressableIPAddr
|
||||
end
|
||||
|
||||
guest_capability("linux", "halt") do
|
||||
guest_capability(:linux, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("linux", "insert_public_key") do
|
||||
guest_capability(:linux, :insert_public_key) do
|
||||
require_relative "cap/insert_public_key"
|
||||
Cap::InsertPublicKey
|
||||
end
|
||||
|
||||
guest_capability("linux", "shell_expand_guest_path") do
|
||||
guest_capability(:linux, :shell_expand_guest_path) do
|
||||
require_relative "cap/shell_expand_guest_path"
|
||||
Cap::ShellExpandGuestPath
|
||||
end
|
||||
|
||||
guest_capability("linux", "mount_nfs_folder") do
|
||||
guest_capability(:linux, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs"
|
||||
Cap::MountNFS
|
||||
end
|
||||
|
||||
guest_capability("linux", "mount_smb_shared_folder") do
|
||||
guest_capability(:linux, :mount_smb_shared_folder) do
|
||||
require_relative "cap/mount_smb_shared_folder"
|
||||
Cap::MountSMBSharedFolder
|
||||
end
|
||||
|
||||
guest_capability("linux", "mount_virtualbox_shared_folder") do
|
||||
guest_capability(:linux, :mount_virtualbox_shared_folder) do
|
||||
require_relative "cap/mount_virtualbox_shared_folder"
|
||||
Cap::MountVirtualBoxSharedFolder
|
||||
end
|
||||
|
||||
guest_capability("linux", "nfs_client_installed") do
|
||||
guest_capability(:linux, :nfs_client_installed) do
|
||||
require_relative "cap/nfs_client"
|
||||
Cap::NFSClient
|
||||
end
|
||||
|
||||
# For the Docker provider
|
||||
guest_capability("linux", "port_open_check") do
|
||||
guest_capability(:linux, :port_open_check) do
|
||||
require_relative "cap/port"
|
||||
Cap::Port
|
||||
end
|
||||
|
||||
guest_capability("linux", "read_ip_address") do
|
||||
guest_capability(:linux, :read_ip_address) do
|
||||
require_relative "cap/read_ip_address"
|
||||
Cap::ReadIPAddress
|
||||
end
|
||||
|
||||
guest_capability("linux", "remove_public_key") do
|
||||
guest_capability(:linux, :remove_public_key) do
|
||||
require_relative "cap/remove_public_key"
|
||||
Cap::RemovePublicKey
|
||||
end
|
||||
|
||||
guest_capability("linux", "rsync_installed") do
|
||||
guest_capability(:linux, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("linux", "rsync_command") do
|
||||
guest_capability(:linux, :rsync_command) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("linux", "rsync_post") do
|
||||
guest_capability(:linux, :rsync_post) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("linux", "rsync_pre") do
|
||||
guest_capability(:linux, :rsync_pre) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("linux", "unmount_virtualbox_shared_folder") do
|
||||
guest_capability(:linux, :unmount_virtualbox_shared_folder) do
|
||||
require_relative "cap/mount_virtualbox_shared_folder"
|
||||
Cap::MountVirtualBoxSharedFolder
|
||||
end
|
||||
|
|
|
@ -6,7 +6,7 @@ module VagrantPlugins
|
|||
name "Mint guest"
|
||||
description "Mint guest support."
|
||||
|
||||
guest("mint", "ubuntu") do
|
||||
guest(:mint, :ubuntu) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
|
|
@ -6,67 +6,67 @@ module VagrantPlugins
|
|||
name "NetBSD guest"
|
||||
description "NetBSD guest support."
|
||||
|
||||
guest("netbsd") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:netbsd) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "change_host_name") do
|
||||
guest_capability(:netbsd, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "configure_networks") do
|
||||
guest_capability(:netbsd, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "halt") do
|
||||
guest_capability(:netbsd, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "insert_public_key") do
|
||||
guest_capability(:netbsd, :insert_public_key) do
|
||||
require_relative "cap/insert_public_key"
|
||||
Cap::InsertPublicKey
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "mount_nfs_folder") do
|
||||
guest_capability(:netbsd, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs_folder"
|
||||
Cap::MountNFSFolder
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "remove_public_key") do
|
||||
guest_capability(:netbsd, :remove_public_key) do
|
||||
require_relative "cap/remove_public_key"
|
||||
Cap::RemovePublicKey
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "rsync_install") do
|
||||
guest_capability(:netbsd, :rsync_install) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "rsync_installed") do
|
||||
guest_capability(:netbsd, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "rsync_command") do
|
||||
guest_capability(:netbsd, :rsync_command) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "rsync_post") do
|
||||
guest_capability(:netbsd, :rsync_post) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "rsync_pre") do
|
||||
guest_capability(:netbsd, :rsync_pre) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("netbsd", "shell_expand_guest_path") do
|
||||
guest_capability(:netbsd, :shell_expand_guest_path) do
|
||||
require_relative "cap/shell_expand_guest_path"
|
||||
Cap::ShellExpandGuestPath
|
||||
end
|
||||
|
|
|
@ -6,22 +6,22 @@ module VagrantPlugins
|
|||
name "NixOS guest"
|
||||
description "NixOS guest support."
|
||||
|
||||
guest("nixos", "linux") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:nixos, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("nixos", "configure_networks") do
|
||||
guest_capability(:nixos, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("nixos", "change_host_name") do
|
||||
guest_capability(:nixos, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("nixos", "nfs_client_installed") do
|
||||
guest_capability(:nixos, :nfs_client_installed) do
|
||||
require_relative "cap/nfs_client"
|
||||
Cap::NFSClient
|
||||
end
|
||||
|
|
|
@ -6,22 +6,22 @@ module VagrantPlugins
|
|||
name "OmniOS guest."
|
||||
description "OmniOS guest support."
|
||||
|
||||
guest("omnios", "solaris") do
|
||||
guest(:omnios, :solaris) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("omnios", "change_host_name") do
|
||||
guest_capability(:omnios, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("omnios", "mount_nfs_folder") do
|
||||
guest_capability(:omnios, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs_folder"
|
||||
Cap::MountNFSFolder
|
||||
end
|
||||
|
||||
guest_capability("omnios", "rsync_install") do
|
||||
guest_capability(:omnios, :rsync_install) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
|
|
@ -6,67 +6,67 @@ module VagrantPlugins
|
|||
name "OpenBSD guest"
|
||||
description "OpenBSD guest support."
|
||||
|
||||
guest("openbsd") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:openbsd) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "change_host_name") do
|
||||
guest_capability(:openbsd, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "configure_networks") do
|
||||
guest_capability(:openbsd, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "halt") do
|
||||
guest_capability(:openbsd, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "insert_public_key") do
|
||||
guest_capability(:openbsd, :insert_public_key) do
|
||||
require_relative "cap/insert_public_key"
|
||||
Cap::InsertPublicKey
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "mount_nfs_folder") do
|
||||
guest_capability(:openbsd, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs_folder"
|
||||
Cap::MountNFSFolder
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "remove_public_key") do
|
||||
guest_capability(:openbsd, :remove_public_key) do
|
||||
require_relative "cap/remove_public_key"
|
||||
Cap::RemovePublicKey
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "rsync_install") do
|
||||
guest_capability(:openbsd, :rsync_install) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "rsync_installed") do
|
||||
guest_capability(:openbsd, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "rsync_command") do
|
||||
guest_capability(:openbsd, :rsync_command) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "rsync_post") do
|
||||
guest_capability(:openbsd, :rsync_post) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "rsync_pre") do
|
||||
guest_capability(:openbsd, :rsync_pre) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("openbsd", "shell_expand_guest_path") do
|
||||
guest_capability(:openbsd, :shell_expand_guest_path) do
|
||||
require_relative "cap/shell_expand_guest_path"
|
||||
Cap::ShellExpandGuestPath
|
||||
end
|
||||
|
|
|
@ -6,22 +6,22 @@ module VagrantPlugins
|
|||
name "VMware Photon guest"
|
||||
description "VMware Photon guest support."
|
||||
|
||||
guest("photon", "linux") do
|
||||
guest(:photon, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("photon", "change_host_name") do
|
||||
guest_capability(:photon, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("photon", "configure_networks") do
|
||||
guest_capability(:photon, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("photon", "docker_daemon_running") do
|
||||
guest_capability(:photon, :docker_daemon_running) do
|
||||
require_relative "cap/docker"
|
||||
Cap::Docker
|
||||
end
|
||||
|
|
|
@ -6,22 +6,22 @@ module VagrantPlugins
|
|||
name "PLD Linux guest"
|
||||
description "PLD Linux guest support."
|
||||
|
||||
guest("pld", "redhat") do
|
||||
guest(:pld, :redhat) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("pld", "change_host_name") do
|
||||
guest_capability(:pld, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("pld", "network_scripts_dir") do
|
||||
guest_capability(:pld, :network_scripts_dir) do
|
||||
require_relative "cap/network_scripts_dir"
|
||||
Cap::NetworkScriptsDir
|
||||
end
|
||||
|
||||
guest_capability("pld", "flavor") do
|
||||
guest_capability(:pld, :flavor) do
|
||||
require_relative "cap/flavor"
|
||||
Cap::Flavor
|
||||
end
|
||||
|
|
|
@ -6,37 +6,37 @@ module VagrantPlugins
|
|||
name "Red Hat Enterprise Linux guest"
|
||||
description "Red Hat Enterprise Linux guest support."
|
||||
|
||||
guest("redhat", "linux") do
|
||||
guest(:redhat, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("redhat", "change_host_name") do
|
||||
guest_capability(:redhat, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("redhat", "configure_networks") do
|
||||
guest_capability(:redhat, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("redhat", "flavor") do
|
||||
guest_capability(:redhat, :flavor) do
|
||||
require_relative "cap/flavor"
|
||||
Cap::Flavor
|
||||
end
|
||||
|
||||
guest_capability("redhat", "network_scripts_dir") do
|
||||
guest_capability(:redhat, :network_scripts_dir) do
|
||||
require_relative "cap/network_scripts_dir"
|
||||
Cap::NetworkScriptsDir
|
||||
end
|
||||
|
||||
guest_capability("redhat", "nfs_client_install") do
|
||||
guest_capability(:redhat, :nfs_client_install) do
|
||||
require_relative "cap/nfs_client"
|
||||
Cap::NFSClient
|
||||
end
|
||||
|
||||
guest_capability("redhat", "rsync_install") do
|
||||
guest_capability(:redhat, :rsync_install) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
|
|
@ -6,17 +6,17 @@ module VagrantPlugins
|
|||
name "Slackware guest"
|
||||
description "Slackware guest support."
|
||||
|
||||
guest("slackware", "linux") do
|
||||
guest(:slackware, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("slackware", "change_host_name") do
|
||||
guest_capability(:slackware, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("slackware", "configure_networks") do
|
||||
guest_capability(:slackware, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
|
|
@ -6,52 +6,52 @@ module VagrantPlugins
|
|||
name "SmartOS guest."
|
||||
description "SmartOS guest support."
|
||||
|
||||
config("smartos") do
|
||||
require File.expand_path("../config", __FILE__)
|
||||
config(:smartos) do
|
||||
require_relative "config"
|
||||
Config
|
||||
end
|
||||
|
||||
guest("smartos") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:smartos) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("smartos", "change_host_name") do
|
||||
guest_capability(:smartos, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("smartos", "configure_networks") do
|
||||
guest_capability(:smartos, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("smartos", "halt") do
|
||||
guest_capability(:smartos, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("smartos", "mount_nfs_folder") do
|
||||
guest_capability(:smartos, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs"
|
||||
Cap::MountNFS
|
||||
end
|
||||
|
||||
guest_capability("smartos", "rsync_installed") do
|
||||
guest_capability(:smartos, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("smartos", "rsync_command") do
|
||||
guest_capability(:smartos, :rsync_command) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("smartos", "rsync_post") do
|
||||
guest_capability(:smartos, :rsync_post) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("smartos", "rsync_pre") do
|
||||
guest_capability(:smartos, :rsync_pre) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
|
|
@ -6,62 +6,62 @@ module VagrantPlugins
|
|||
name "Solaris guest."
|
||||
description "Solaris guest support."
|
||||
|
||||
config("solaris") do
|
||||
require File.expand_path("../config", __FILE__)
|
||||
config(:solaris) do
|
||||
require_relative "config"
|
||||
Config
|
||||
end
|
||||
|
||||
guest("solaris") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:solaris) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("solaris", "change_host_name") do
|
||||
guest_capability(:solaris, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("solaris", "configure_networks") do
|
||||
guest_capability(:solaris, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("solaris", "insert_public_key") do
|
||||
guest_capability(:solaris, :insert_public_key) do
|
||||
require_relative "cap/insert_public_key"
|
||||
Cap::InsertPublicKey
|
||||
end
|
||||
|
||||
guest_capability("solaris", "halt") do
|
||||
guest_capability(:solaris, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("solaris", "mount_virtualbox_shared_folder") do
|
||||
guest_capability(:solaris, :mount_virtualbox_shared_folder) do
|
||||
require_relative "cap/mount_virtualbox_shared_folder"
|
||||
Cap::MountVirtualBoxSharedFolder
|
||||
end
|
||||
|
||||
guest_capability("solaris", "remove_public_key") do
|
||||
guest_capability(:solaris, :remove_public_key) do
|
||||
require_relative "cap/remove_public_key"
|
||||
Cap::RemovePublicKey
|
||||
end
|
||||
|
||||
guest_capability("solaris", "rsync_installed") do
|
||||
guest_capability(:solaris, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("solaris", "rsync_command") do
|
||||
guest_capability(:solaris, :rsync_command) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("solaris", "rsync_post") do
|
||||
guest_capability(:solaris, :rsync_post) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("solaris", "rsync_pre") do
|
||||
guest_capability(:solaris, :rsync_pre) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
|
|
@ -10,52 +10,52 @@ module VagrantPlugins
|
|||
name "Solaris 11 guest."
|
||||
description "Solaris 11 guest support."
|
||||
|
||||
config("solaris11") do
|
||||
require File.expand_path("../config", __FILE__)
|
||||
config(:solaris11) do
|
||||
require_relative "config"
|
||||
Config
|
||||
end
|
||||
|
||||
guest("solaris11") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:solaris11) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("solaris11", "change_host_name") do
|
||||
guest_capability(:solaris11, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("solaris11", "configure_networks") do
|
||||
guest_capability(:solaris11, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("solaris11", "halt") do
|
||||
guest_capability(:solaris11, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("solaris11", "mount_virtualbox_shared_folder") do
|
||||
guest_capability(:solaris11, :mount_virtualbox_shared_folder) do
|
||||
require_relative "cap/mount_virtualbox_shared_folder"
|
||||
Cap::MountVirtualBoxSharedFolder
|
||||
end
|
||||
|
||||
guest_capability("solaris11", "rsync_installed") do
|
||||
guest_capability(:solaris11, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("solaris11", "rsync_pre") do
|
||||
guest_capability(:solaris11, :rsync_pre) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("solaris11", "insert_public_key") do
|
||||
guest_capability(:solaris11, :insert_public_key) do
|
||||
require_relative "cap/insert_public_key"
|
||||
Cap::InsertPublicKey
|
||||
end
|
||||
|
||||
guest_capability("solaris11", "remove_public_key") do
|
||||
guest_capability(:solaris11, :remove_public_key) do
|
||||
require_relative "cap/remove_public_key"
|
||||
Cap::RemovePublicKey
|
||||
end
|
||||
|
|
|
@ -6,42 +6,42 @@ module VagrantPlugins
|
|||
name "SUSE guest"
|
||||
description "SUSE guest support."
|
||||
|
||||
guest("suse", "linux") do
|
||||
guest(:suse, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("suse", "change_host_name") do
|
||||
guest_capability(:suse, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("suse", "configure_networks") do
|
||||
guest_capability(:suse, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("suse", "halt") do
|
||||
guest_capability(:suse, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("suse", "network_scripts_dir") do
|
||||
guest_capability(:suse, :network_scripts_dir) do
|
||||
require_relative "cap/network_scripts_dir"
|
||||
Cap::NetworkScriptsDir
|
||||
end
|
||||
|
||||
guest_capability("suse", "nfs_client_install") do
|
||||
guest_capability(:suse, :nfs_client_install) do
|
||||
require_relative "cap/nfs_client"
|
||||
Cap::NFSClient
|
||||
end
|
||||
|
||||
guest_capability("suse", "rsync_install") do
|
||||
guest_capability(:suse, :rsync_install) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("suse", "rsync_installed") do
|
||||
guest_capability(:suse, :rsync_installed) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
|
|
@ -6,32 +6,32 @@ module VagrantPlugins
|
|||
name "TinyCore Linux guest."
|
||||
description "TinyCore Linux guest support."
|
||||
|
||||
guest("tinycore", "linux") do
|
||||
require File.expand_path("../guest", __FILE__)
|
||||
guest(:tinycore, :linux) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("tinycore", "configure_networks") do
|
||||
guest_capability(:tinycore, :configure_networks) do
|
||||
require_relative "cap/configure_networks"
|
||||
Cap::ConfigureNetworks
|
||||
end
|
||||
|
||||
guest_capability("tinycore", "change_host_name") do
|
||||
guest_capability(:tinycore, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
||||
guest_capability("tinycore", "halt") do
|
||||
guest_capability(:tinycore, :halt) do
|
||||
require_relative "cap/halt"
|
||||
Cap::Halt
|
||||
end
|
||||
|
||||
guest_capability("tinycore", "rsync_install") do
|
||||
guest_capability(:tinycore, :rsync_install) do
|
||||
require_relative "cap/rsync"
|
||||
Cap::RSync
|
||||
end
|
||||
|
||||
guest_capability("tinycore", "mount_nfs_folder") do
|
||||
guest_capability(:tinycore, :mount_nfs_folder) do
|
||||
require_relative "cap/mount_nfs"
|
||||
Cap::MountNFS
|
||||
end
|
||||
|
|
|
@ -6,7 +6,7 @@ module VagrantPlugins
|
|||
name "Trisquel guest"
|
||||
description "Trisquel guest support."
|
||||
|
||||
guest("trisquel", "ubuntu") do
|
||||
guest(:trisquel, :ubuntu) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
|
|
@ -6,12 +6,12 @@ module VagrantPlugins
|
|||
name "Ubuntu guest"
|
||||
description "Ubuntu guest support."
|
||||
|
||||
guest("ubuntu", "debian") do
|
||||
guest(:ubuntu, :debian) do
|
||||
require_relative "guest"
|
||||
Guest
|
||||
end
|
||||
|
||||
guest_capability("ubuntu", "change_host_name") do
|
||||
guest_capability(:ubuntu, :change_host_name) do
|
||||
require_relative "cap/change_host_name"
|
||||
Cap::ChangeHostName
|
||||
end
|
||||
|
|
|
@ -8,12 +8,12 @@ module VagrantPlugins
|
|||
name "Windows guest."
|
||||
description "Windows guest support."
|
||||
|
||||
config("windows") do
|
||||
config(:windows) do
|
||||
require_relative "config"
|
||||
Config
|
||||
end
|
||||
|
||||
guest("windows") do
|
||||
guest(:windows) do
|
||||
require_relative "guest"
|
||||
init!
|
||||
Guest
|
||||
|
|
Loading…
Reference in New Issue