Class: Facter::Util::Facts::WindowsReleaseFinder

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/util/facts/windows_release_finder.rb

Overview

Since:

  • 2.0.0

Class Method Summary collapse

Class Method Details

.find_release(input) ⇒ Object

Since:

  • 2.0.0



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 version =~ /10.0/
    check_version_10(consumerrel, kernel_version)
  else
    check_version_6(version, consumerrel) || check_version_5(version, consumerrel, description) || version
  end
end