Skip to content

Commit

Permalink
Autodetection is for the birds
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Thomas committed Sep 30, 2016
1 parent ea2fe49 commit 8e48244
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions bin/bento
Original file line number Diff line number Diff line change
Expand Up @@ -555,16 +555,12 @@ class TestRunner
def test_box(boxname, providers)
providers.each do |provider, provider_data|

plugin_list = Mixlib::ShellOut.new("vagrant plugin list | awk '{print $1}'")
plugin_list.run_command
plugins = plugin_list.stdout.split("\n")

if provider == 'vmware_desktop'
case
when plugins.include?('vagrant-vmware-workstation')
provider = 'vmware_workstation'
when plugins.include?('vagrant-vmware-fusion')
case RUBY_PLATFORM
when /darwin/
provider = 'vmware_fusion'
when /linux/
provider = 'vmware_workstation'
end
end

Expand Down

0 comments on commit 8e48244

Please sign in to comment.