Class: Facter::Util::Facts::WindowsReleaseFinder
- Inherits:
-
Object
- Object
- Facter::Util::Facts::WindowsReleaseFinder
- Defined in:
- lib/facter/util/facts/windows_release_finder.rb
Overview
Class Method Summary collapse
Class Method Details
.find_release(input) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/facter/util/facts/windows_release_finder.rb', line 8 def find_release(input) version = input[:version] return unless version consumerrel = input[:consumerrel] description = input[:description] kernel_version = input[:kernel_version] if /10.0/.match?(version) check_version_10_11(consumerrel, kernel_version) else check_version_6(version, consumerrel) || check_version_5(version, consumerrel, description) || version end end |