From c9f14d6dc97c69f309550726423595f2c2bf351d Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 18 Dec 2010 20:02:54 -0800 Subject: [PATCH] Use RbConfig instead of Config, latter is deprecated --- lib/vagrant/util/platform.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/util/platform.rb b/lib/vagrant/util/platform.rb index 4c7a84f16..b86b4b56c 100644 --- a/lib/vagrant/util/platform.rb +++ b/lib/vagrant/util/platform.rb @@ -33,7 +33,7 @@ module Vagrant # # @return [Boolean] def bit64? - ["x86_64", "amd64"].include?(::Config::CONFIG["host_cpu"]) + ["x86_64", "amd64"].include?(RbConfig::CONFIG["host_cpu"]) end # Returns boolean noting whether this is a 32-bit CPU. This @@ -50,7 +50,7 @@ module Vagrant end def platform - ::Config::CONFIG["host_os"].downcase + RbConfig::CONFIG["host_os"].downcase end end end