summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/autoload.rb
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-03-22 15:28:52 -0700
committerMatt Robinson <matt@puppetlabs.com>2011-03-22 15:35:32 -0700
commit0170cebba039378597fdf9f0086339c2766df408 (patch)
tree9b7fdf2310e0abcc4c45ae24dca21bbd0d3a9488 /lib/puppet/util/autoload.rb
parentaf42367dce6ab1ad18a1a8d10e4d54b5accae449 (diff)
downloadpuppet-0170cebba039378597fdf9f0086339c2766df408.tar.gz
puppet-0170cebba039378597fdf9f0086339c2766df408.tar.xz
puppet-0170cebba039378597fdf9f0086339c2766df408.zip
(#6527) Fix uninstall problem and refactor
Uninstall wasn't working properly because the instances method relied on the pip command having been defined by calling lazy_pip. This lazy_pip pattern is a nice way of getting around Puppet's problem of disqualifying providers at the beginning of a run because the command doesn't yet exist even though part way through the run the command might exist. Really, we need to fix puppet to lazily evaluate a provider command for validity only at the time the provider is needed. The refactoring also pointed out that query could just reuse the logic from instances. The tests were also refactored to use real resources instead of stubbed ones, and they reflect the implementation changes to instances. Paired-with: Richard Crowley <r@rcrowley.org>
Diffstat (limited to 'lib/puppet/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions