Skip to content

Commit

Permalink
Rename VMware Fusion support to VMware Desktop
Browse files Browse the repository at this point in the history
On 2016-03-26, HashiCorp released the VMware Desktop Plugin, which
replaced the existing VMware Fusion implementation. With the rename, the
hooks that Landrush needs to start services can no longer be called.
Renaming those makes those work again.

Fixes vagrant-landrush#334.
  • Loading branch information
nickcharlton committed Apr 23, 2020
1 parent bfef5eb commit 2a2b779
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/landrush/action/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module Common
SUPPORTED_PROVIDERS = {
'VagrantPlugins::ProviderVirtualBox::Provider' => :virtualbox,
'VagrantPlugins::ProviderLibvirt::Provider' => :libvirt,
'HashiCorp::VagrantVMwarefusion::Provider' => :vmware_fusion,
'HashiCorp::VagrantVMwareDesktop::Provider' => :vmware_desktop,
'VagrantPlugins::Parallels::Provider' => :parallels,
'VagrantPlugins::HyperV::Provider' => :hyperv,
'VagrantPlugins::DockerProvider::Provider' => :docker,
Expand Down Expand Up @@ -34,7 +34,7 @@ def libvirt?
end

def vmware?
provider == :vmware_fusion
provider == :vmware_desktop
end

def parallels?
Expand Down
6 changes: 3 additions & 3 deletions lib/landrush/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class Plugin < Vagrant.plugin('2')
end

# Hooks for VMWarefusion provider
if defined?(HashiCorp::VagrantVMwarefusion)
hook.before(HashiCorp::VagrantVMwarefusion::Action::Network, pre_boot_actions)
hook.after(HashiCorp::VagrantVMwarefusion::Action::WaitForCommunicator, post_boot_actions)
if defined?(HashiCorp::VagrantVMwareDesktop)
hook.before(HashiCorp::VagrantVMwareDesktop::Action::Network, pre_boot_actions)
hook.after(HashiCorp::VagrantVMwareDesktop::Action::WaitForCommunicator, post_boot_actions)
end

# Hooks for Parallels provider
Expand Down

0 comments on commit 2a2b779

Please sign in to comment.