summaryrefslogtreecommitdiff
path: root/spec/unit/defaults_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2014-08-13(PUP-3050) Update cfacter option for recent cfacter gem changes.Peter Huene1-19/+4
Now that cfacter implements the Ruby Facter interoperability layer, there is no need for Puppet to "switch out" the Facter module for the CFacter module. libfacter itself will now expose a compatible Facter module in C++. Therefore, we no longer need facts.rb or the corresponding spec. Instead, simply require cfacter and call CFacter.initialize. This will replace Ruby Facter with the libfacter implementation.
2014-06-26(PUP-2104) Add cfacter setting to enable cfacter implementation.Peter Huene1-0/+45
Adding a --cfacter setting that will replace the facter implementation with the native facter implementation if the following conditions are met: * cfacter is installed * the version of cfacter is at least 0.2.0 (not yet released). * facter has not evaluated any facts by the time the setting is set. To accomplish this last point, certain default setting values needed to be delay-evaluated as they relied on facts. Therefore a :default for a setting now accepts a Proc and calls the Proc only once when the default value is needed.
2013-05-09(#18393) AIX 5.3 doesn't support diff -uJeff Weiss1-0/+44
Prior to this commit, the diffargs where always `-u`, which is not supported on AIX 5.3, an official PE supported platform. This commit adds a utility method to abstract away the logic for what the default diffargs should be and then calls that for the default value.