Class: Facter::ExternalFactLoader
- Inherits:
-
Object
- Object
- Facter::ExternalFactLoader
- Defined in:
- lib/facter/framework/core/fact_loaders/external_fact_loader.rb
Instance Method Summary collapse
Instance Method Details
#custom_facts ⇒ Object
5 6 7 |
# File 'lib/facter/framework/core/fact_loaders/external_fact_loader.rb', line 5 def custom_facts @custom_facts = load_custom_facts end |
#external_facts ⇒ Object
9 10 11 |
# File 'lib/facter/framework/core/fact_loaders/external_fact_loader.rb', line 9 def external_facts @external_facts = load_external_facts end |
#load_fact(fact_name) ⇒ Object
13 14 15 |
# File 'lib/facter/framework/core/fact_loaders/external_fact_loader.rb', line 13 def load_fact(fact_name) build_custom_facts(LegacyFacter.collection.custom_fact(fact_name)) || [] end |