From 6900f9776a7875ea13cbb5fe1f2eaa48fe05e667 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 2 Apr 2008 10:53:40 -0500 Subject: Adding a :to_text method that will convert the contained thing to readable human text. --- lib/puppet/ssl/base.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib') diff --git a/lib/puppet/ssl/base.rb b/lib/puppet/ssl/base.rb index 781ccb805..674330373 100644 --- a/lib/puppet/ssl/base.rb +++ b/lib/puppet/ssl/base.rb @@ -33,6 +33,12 @@ class Puppet::SSL::Base content.to_pem end + # Provide the full text of the thing we're dealing with. + def to_text + return "" unless content + content.to_text + end + private def wrapped_class -- cgit