Module: Facter::Processors

Defined in:
lib/facter/processors/os.rb

Defined Under Namespace

Classes: AIX, BSD, Base, Darwin, GNU, HP_UX, Linux, OpenBSD, SunOS, Windows

Class Method Summary collapse

Class Method Details

.implementation(kernel = Facter.value(:kernel)) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/facter/processors/os.rb', line 12

def self.implementation(kernel = Facter.value(:kernel))
  case kernel
  when "Linux"
    Facter::Processors::Linux.new
  when "GNU/kFreeBSD"
    Facter::Processors::GNU.new
  when "Darwin"
    Facter::Processors::Darwin.new
  when "AIX"
    Facter::Processors::AIX.new
  when "HP-UX"
    Facter::Processors::HP_UX.new
  when "DragonFly", "FreeBSD"
    Facter::Processors::BSD.new
  when "OpenBSD"
    Facter::Processors::OpenBSD.new
  when "SunOS"
    Facter::Processors::SunOS.new
  when "windows"
    Facter::Processors::Windows.new
  end
end