Class: Puppet::FacterImpl Private

Inherits:
Object show all
Defined in:
lib/puppet/facter_impl.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initializeFacterImpl

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of FacterImpl.



10
11
12
13
14
# File 'lib/puppet/facter_impl.rb', line 10

def initialize
  require 'facter'

  setup_logging
end

Instance Method Details

#add(name, &block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



20
21
22
# File 'lib/puppet/facter_impl.rb', line 20

def add(name, &block)
  ::Facter.add(name, &block)
end

#clearObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



28
29
30
# File 'lib/puppet/facter_impl.rb', line 28

def clear
  ::Facter.clear
end

#debugging(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



52
53
54
# File 'lib/puppet/facter_impl.rb', line 52

def debugging(value)
  ::Facter.debugging(value) if ::Facter.respond_to?(:debugging)
end

#load_external(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



60
61
62
# File 'lib/puppet/facter_impl.rb', line 60

def load_external(value)
  ::Facter.load_external(value) if load_external?
end

#load_external?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


56
57
58
# File 'lib/puppet/facter_impl.rb', line 56

def load_external?
  ::Facter.respond_to?(:load_external)
end

#resetObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



32
33
34
# File 'lib/puppet/facter_impl.rb', line 32

def reset
  ::Facter.reset
end

#resolve(options) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



36
37
38
# File 'lib/puppet/facter_impl.rb', line 36

def resolve(options)
  ::Facter.resolve(options)
end

#search(*dirs) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



44
45
46
# File 'lib/puppet/facter_impl.rb', line 44

def search(*dirs)
  ::Facter.search(*dirs)
end

#search_external(dirs) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



40
41
42
# File 'lib/puppet/facter_impl.rb', line 40

def search_external(dirs)
  ::Facter.search_external(dirs)
end

#to_hashObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



24
25
26
# File 'lib/puppet/facter_impl.rb', line 24

def to_hash
  ::Facter.to_hash
end

#trace(value) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



48
49
50
# File 'lib/puppet/facter_impl.rb', line 48

def trace(value)
  ::Facter.trace(value) if ::Facter.respond_to? :trace
end

#value(fact_name) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
# File 'lib/puppet/facter_impl.rb', line 16

def value(fact_name)
  ::Facter.value(fact_name)
end