Path: | lib/ohai/plugins/windows/kernel.rb |
Last Update: | Tue May 11 18:27:37 +0000 2010 |
Author: | James Gartrell (<jgartrel@gmail.com>) |
Copyright: | Copyright (c) 2009 Opscode, Inc. |
License: | Apache License, Version 2.0 |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
# File lib/ohai/plugins/windows/kernel.rb, line 21 21: def machine_lookup(sys_type) 22: return "i386" if sys_type.eql?("X86-based PC") 23: return "x86_64" if sys_type.eql?("x64-based PC") 24: sys_type 25: end
# File lib/ohai/plugins/windows/kernel.rb, line 27 27: def os_lookup(sys_type) 28: return "Unknown" if sys_type.to_s.eql?("0") 29: return "Other" if sys_type.to_s.eql?("1") 30: return "MSDOS" if sys_type.to_s.eql?("14") 31: return "WIN3x" if sys_type.to_s.eql?("15") 32: return "WIN95" if sys_type.to_s.eql?("16") 33: return "WIN98" if sys_type.to_s.eql?("17") 34: return "WINNT" if sys_type.to_s.eql?("18") 35: return "WINCE" if sys_type.to_s.eql?("19") 36: return nil 37: end