From 77ee4ec6ca56973ce315358864722a152557857f Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Mon, 19 May 2008 02:05:19 -0500 Subject: Refactoring how the provider confine tests work, again. Now each of the test types is a separate subclass of Confine, so that they can have all of their own logging and summarizing behaviour. Also, added a 'feature' type, which can test for the availability of Puppet features (and log their absence more usefully). --- lib/puppet/reference/providers.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/puppet/reference') diff --git a/lib/puppet/reference/providers.rb b/lib/puppet/reference/providers.rb index da815ddf1..610c7550d 100644 --- a/lib/puppet/reference/providers.rb +++ b/lib/puppet/reference/providers.rb @@ -71,6 +71,8 @@ providers = Puppet::Util::Reference.newreference :providers, :title => "Provider details += " - Got %s true tests that should have been false\n" % values when :false: details += " - Got %s false tests that should have been true\n" % values + when :feature: + details += " - Missing features %s\n" % values.collect { |f| f.to_s }.join(",") end end notes << details -- cgit