Path: | lib/ohai/plugins/windows/kernel.rb |
Last Update: | Thu Jan 17 19:03:16 +0000 2013 |
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 23 23: def machine_lookup(sys_type) 24: return "i386" if sys_type.eql?("X86-based PC") 25: return "x86_64" if sys_type.eql?("x64-based PC") 26: sys_type 27: end
# File lib/ohai/plugins/windows/kernel.rb, line 29 29: def os_lookup(sys_type) 30: return "Unknown" if sys_type.to_s.eql?("0") 31: return "Other" if sys_type.to_s.eql?("1") 32: return "MSDOS" if sys_type.to_s.eql?("14") 33: return "WIN3x" if sys_type.to_s.eql?("15") 34: return "WIN95" if sys_type.to_s.eql?("16") 35: return "WIN98" if sys_type.to_s.eql?("17") 36: return "WINNT" if sys_type.to_s.eql?("18") 37: return "WINCE" if sys_type.to_s.eql?("19") 38: return nil 39: end