Class: Facts::Solaris::Os::Name
- Inherits:
-
Object
- Object
- Facts::Solaris::Os::Name
- Defined in:
- lib/facter/facts/solaris/os/name.rb
Constant Summary collapse
- FACT_NAME =
'os.name'
- ALIASES =
'operatingsystem'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
10 11 12 13 14 15 |
# File 'lib/facter/facts/solaris/os/name.rb', line 10 def call_the_resolver value = Facter::Resolvers::Uname.resolve(:kernelname) fact_value = value == 'SunOS' ? 'Solaris' : value [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)] end |