Skip to content

Commit

Permalink
Use symbols for defining guest capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo committed Jun 17, 2016
1 parent 2ffcadc commit b29864f
Show file tree
Hide file tree
Showing 28 changed files with 195 additions and 195 deletions.
6 changes: 3 additions & 3 deletions plugins/guests/arch/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
6 changes: 3 additions & 3 deletions plugins/guests/atomic/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
8 changes: 4 additions & 4 deletions plugins/guests/coreos/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
32 changes: 16 additions & 16 deletions plugins/guests/darwin/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,82 +6,82 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
12 changes: 6 additions & 6 deletions plugins/guests/debian/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
12 changes: 6 additions & 6 deletions plugins/guests/esxi/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
10 changes: 5 additions & 5 deletions plugins/guests/fedora/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
26 changes: 13 additions & 13 deletions plugins/guests/freebsd/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,67 +6,67 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
8 changes: 4 additions & 4 deletions plugins/guests/funtoo/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
8 changes: 4 additions & 4 deletions plugins/guests/gentoo/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ class Plugin < Vagrant.plugin("2")
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
Expand Down
Loading

0 comments on commit b29864f

Please sign in to comment.