summaryrefslogtreecommitdiffstats
path: root/lib/puppet/interface/documentation.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-05-02 13:57:57 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-05-02 15:34:03 -0700
commitc63e9c2394a30fe653908cd15967218d90fa34d6 (patch)
treed0b75f87547e5e5d778f2805304caa3ead30bb13 /lib/puppet/interface/documentation.rb
parenta71bfa10123276b1dc96c5ef540b9fbf222c2f6d (diff)
downloadpuppet-c63e9c2394a30fe653908cd15967218d90fa34d6.tar.gz
puppet-c63e9c2394a30fe653908cd15967218d90fa34d6.tar.xz
puppet-c63e9c2394a30fe653908cd15967218d90fa34d6.zip
maint: reset more global state in testing faces...
When we query for all faces we need to scan the entire Ruby load path, look for everything that looks like a face, and load it up. That is a fairly expensive operation, especially on a platform that has slow I/O. *cough* EC2 *cough* Because of that we only scan once, and assume that the list is static thereafter; this works OK out in the field, but sucks in testing where that global state gets in the way of the rest of our fiddling under the hood. This resets the '@loaded' member of the collection additionally, which is what should be done since we have reset the rest of the collection at the same time. We don't bother to reset it, as an extra scan during tests is not a problem. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
Diffstat (limited to 'lib/puppet/interface/documentation.rb')
0 files changed, 0 insertions, 0 deletions