Class: Facts::Solaris::Dmi::Product::Name

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/facts/solaris/dmi/product/name.rb

Constant Summary collapse

FACT_NAME =
'dmi.product.name'
ALIASES =
'productname'

Instance Method Summary collapse

Instance Method Details

#call_the_resolverObject



11
12
13
14
15
16
17
18
# File 'lib/facter/facts/solaris/dmi/product/name.rb', line 11

def call_the_resolver
  fact_value = if isa == 'i386'
                 Facter::Resolvers::Solaris::Dmi.resolve(:product_name)
               elsif isa == 'sparc'
                 Facter::Resolvers::Solaris::DmiSparc.resolve(:product_name)
               end
  [Facter::ResolvedFact.new(FACT_NAME, fact_value), Facter::ResolvedFact.new(ALIASES, fact_value, :legacy)]
end

#isaObject



20
21
22
# File 'lib/facter/facts/solaris/dmi/product/name.rb', line 20

def isa
  Facter::Resolvers::Uname.resolve(:processor)
end