Class: Facts::Linux::Gce
- Inherits:
-
Object
- Object
- Facts::Linux::Gce
- Defined in:
- lib/facter/facts/linux/gce.rb
Constant Summary collapse
- FACT_NAME =
'gce'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
8 9 10 11 12 13 |
# File 'lib/facter/facts/linux/gce.rb', line 8 def call_the_resolver bios_vendor = Facter::Resolvers::Linux::DmiBios.resolve(:bios_vendor) fact_value = bios_vendor&.include?('Google') ? Facter::Resolvers::Gce.resolve(:metadata) : nil Facter::ResolvedFact.new(FACT_NAME, fact_value) end |