lib/kitchen/driver/vagrant.rb in kitchen-vagrant-0.12.0 vs lib/kitchen/driver/vagrant.rb in kitchen-vagrant-0.13.0

- old
+ new

@@ -47,12 +47,11 @@ default_config :box do |driver| "opscode-#{driver.instance.platform.name}" end default_config :box_url do |driver| - "https://opscode-vm-bento.s3.amazonaws.com/vagrant/" \ - "opscode_#{driver.instance.platform.name}_provisionerless.box" + driver.default_box_url end required_config :box no_parallel_for :create, :destroy @@ -98,9 +97,17 @@ end def instance=(instance) @instance = instance resolve_config! + end + + def default_box_url + bucket = config[:provider] + bucket = 'vmware' if config[:provider] =~ /^vmware_(.+)$/ + + "https://opscode-vm-bento.s3.amazonaws.com/vagrant/#{bucket}/" + + "opscode_#{instance.platform.name}_chef-provisionerless.box" end protected WEBSITE = "http://downloads.vagrantup.com/"