Signed-off-by: Luke Kanies <[email protected]>
---
 lib/puppet/application/pi.rb |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/lib/puppet/application/pi.rb b/lib/puppet/application/pi.rb
index 4c73418..3ac6081 100644
--- a/lib/puppet/application/pi.rb
+++ b/lib/puppet/application/pi.rb
@@ -124,9 +124,10 @@ class TypeDoc
     # List details about attributes
     def format_attrs(type, attrs)
         docs = {}
-        type.eachattr do |obj, kind|
-            if attrs.include?(kind) && obj.name != :provider
-                docs[obj.name] = obj.doc
+        type.allattrs.each do |name|
+            kind = type.attrtype(name)
+            if attrs.include?(kind) && name != :provider
+                docs[name] = type.attrclass(name).doc
             end
         end
 
@@ -146,9 +147,10 @@ class TypeDoc
     # List the names of attributes
     def list_attrs(type, attrs)
         params = []
-        type.eachattr do |obj, kind|
-            if attrs.include?(kind) && obj.name != :provider
-                params << obj.name.to_s
+        type.allattrs.each do |name|
+            kind = type.attrtype(name)
+            if attrs.include?(kind) && name != :provider
+                params << name.to_s
             end
         end
         puts @format.wrap(params.sort.join(", "), :indent => 4)
-- 
1.6.1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to