Class: Facts::Freebsd::Ec2Userdata
- Inherits:
-
Object
- Object
- Facts::Freebsd::Ec2Userdata
- Defined in:
- lib/facter/facts/freebsd/ec2_userdata.rb
Constant Summary collapse
- FACT_NAME =
'ec2_userdata'
Instance Method Summary collapse
Instance Method Details
#call_the_resolver ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/facter/facts/freebsd/ec2_userdata.rb', line 8 def call_the_resolver return Facter::ResolvedFact.new(FACT_NAME, nil) unless aws_hypervisors? fact_value = Facter::Resolvers::Ec2.resolve(:userdata) Facter::ResolvedFact.new(FACT_NAME, fact_value&.empty? ? nil : fact_value) end |