[Pkg-puppet-devel] [SCM] Puppet packaging for Debian branch, master, updated. debian/0.24.6-1-356-g5718585

James Turnbull james at lovedthanlost.net
Fri Jan 23 14:21:25 UTC 2009


The following commit has been merged in the master branch:
commit b0fd2e057a7fbff59565febc3ebb60a33863ff85
Author: Luke Kanies <luke at madstop.com>
Date:   Mon Oct 13 10:35:40 2008 -0500

    Fixing #1647 - puppetdoc's 'providers' report works again.
    
    Signed-off-by: Luke Kanies <luke at madstop.com>

diff --git a/lib/puppet/provider/confine/variable.rb b/lib/puppet/provider/confine/variable.rb
index 84d1736..3333563 100644
--- a/lib/puppet/provider/confine/variable.rb
+++ b/lib/puppet/provider/confine/variable.rb
@@ -3,7 +3,7 @@ require 'puppet/provider/confine'
 class Puppet::Provider::Confine::Variable < Puppet::Provider::Confine
     def self.summarize(confines)
         result = Hash.new { |hash, key| hash[key] = [] }
-        confines.inject(result) { |total, confine| total[confine.fact] += confine.values unless confine.valid?; total }
+        confines.inject(result) { |total, confine| total[confine.class.name] += confine.values unless confine.valid?; total }
     end
 
     attr_accessor :name
diff --git a/spec/integration/reference/providers.rb b/spec/integration/reference/providers.rb
new file mode 100755
index 0000000..79b6ce1
--- /dev/null
+++ b/spec/integration/reference/providers.rb
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+Dir.chdir(File.dirname(__FILE__)) { (s = lambda { |f| File.exist?(f) ? require(f) : Dir.chdir("..") { s.call(f) } }).call("spec/spec_helper.rb") }
+
+require 'puppet/util/reference'
+
+reference = Puppet::Util::Reference.reference(:providers)
+
+describe reference do
+    it "should exist" do
+        reference.should_not be_nil
+    end
+
+    it "should be able to be rendered as text" do
+        lambda { reference.to_text }.should_not raise_error
+    end
+end

-- 
Puppet packaging for Debian



More information about the Pkg-puppet-devel mailing list