some rspec tests were outputting arbitrary hexidecimal object ids when
testing Application objects. This makes the names render as
Puppet::Application[:apply]

Signed-off-by: Jesse Wolfe <[email protected]>
---
 lib/puppet/application.rb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/puppet/application.rb b/lib/puppet/application.rb
index a80f422..0f479b0 100644
--- a/lib/puppet/application.rb
+++ b/lib/puppet/application.rb
@@ -388,6 +388,10 @@ class Puppet::Application
         exit
     end
 
+    def to_s
+        "#{self.class}[email protected]}]"
+    end
+
     private
 
     def exit_on_fail(message, code = 1)
-- 
1.6.3.3

-- 
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