Class: Facter::ExternalFactLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/facter/framework/core/fact_loaders/external_fact_loader.rb

Instance Method Summary collapse

Instance Method Details

#custom_factsObject



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_factsObject



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