From 8cd74fee160e66cde31c435e29a915c3abc285ad Mon Sep 17 00:00:00 2001 From: JD Harrington Date: Thu, 21 Mar 2013 21:16:07 -0400 Subject: [PATCH] Allow override of default_provider Set the VAGRANT_DEFAULT_PROVIDER environment variable to override the value of default_provider. --- lib/vagrant/environment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index ffffed50d..7027e9754 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -195,7 +195,7 @@ module Vagrant # # @return [Symbol] Name of the default provider. def default_provider - :virtualbox + (ENV['VAGRANT_DEFAULT_PROVIDER'] || :virtualbox).to_sym end # Returns the collection of boxes for the environment.