4 # This method is intended to provide a convenient way to evaluate a
5 # Facter code block only if Puppet is loaded. This is to account for the
6 # situation where the fact happens to be in the load path, but Puppet is
7 # not loaded for whatever reason. Perhaps the user is simply running
8 # facter without the --puppet flag and they happen to be working in a lib
9 # directory of a module.
12 Module.const_get("Puppet")