summaryrefslogtreecommitdiffstats
path: root/lib/puppet/reference/providers.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-05-19 02:05:19 -0500
committerLuke Kanies <luke@madstop.com>2008-05-19 02:05:19 -0500
commit77ee4ec6ca56973ce315358864722a152557857f (patch)
treec54824cfad62eeb7f5cf8d4dd82191c30cc3b3dd /lib/puppet/reference/providers.rb
parent8008bbc447764e0ca28169284f4d6df3a86dcdd6 (diff)
downloadpuppet-77ee4ec6ca56973ce315358864722a152557857f.tar.gz
puppet-77ee4ec6ca56973ce315358864722a152557857f.tar.xz
puppet-77ee4ec6ca56973ce315358864722a152557857f.zip
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).
Diffstat (limited to 'lib/puppet/reference/providers.rb')
-rw-r--r--lib/puppet/reference/providers.rb2
1 files changed, 2 insertions, 0 deletions
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