lib/vagrant/environment.rb
# Verifies that VirtualBox is installed and that the version of
# VirtualBox installed is high enough.
Verifies that VirtualBox is installed and that the version of
VirtualBox installed is high enough.
Verifies that VirtualBox is installed and that the version of VirtualBox installed is high enough .
def check_virtualbox!
        version = VirtualBox.version
        raise Errors::VirtualBoxNotDetected if version.nil?
        raise Errors::VirtualBoxInvalidVersion, :version => version.to_s if version.to_f < 4.0
      rescue Errors::VirtualBoxNotDetected
        raise Errors::VirtualBoxNotDetected_Win64 if Util::Platform.windows? && Util::Platform.bit64?
        raise
      end
def check_virtualbox! version = VirtualBox . version raise Errors :: VirtualBoxNotDetected if version . nil? raise Errors :: VirtualBoxInvalidVersion , :version => version . to_s if version . to_f < 4.0 rescue Errors :: VirtualBoxNotDetected raise Errors :: VirtualBoxNotDetected_Win64 if Util :: Platform . windows? && Util :: Platform . bit64? raise end
Verifies that VirtualBox is installed and that the version of
VirtualBox installed is high enough.
Verifies that VirtualBox is installed and that the version of VirtualBox installed is high enough .
# On 64-bit Windows, show a special error. This error is a subclass # of VirtualBoxNotDetected, so libraries which use Vagrant can just # rescue VirtualBoxNotDetected. # Otherwise, reraise the old error