Use rbconfig to get host OS

This commit is contained in:
Mitchell Hashimoto 2010-12-18 11:53:36 -08:00
parent b5b8b128d9
commit 8c13d1919e
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
require 'rbconfig'
require 'mario' require 'mario'
module Vagrant module Vagrant
@ -33,7 +34,7 @@ module Vagrant
end end
def platform def platform
RUBY_PLATFORM.to_s.downcase ::Config::CONFIG["host_os"].downcase
end end
end end
end end