summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-04-02 10:53:40 -0500
committerLuke Kanies <luke@madstop.com>2008-04-15 21:34:07 -0500
commit6900f9776a7875ea13cbb5fe1f2eaa48fe05e667 (patch)
treea656741fb515e634e3c3beb4f8a70c52fc2cd5dc /lib
parent174b9c99f7eb904ec7d415d3884f3620b6b65d40 (diff)
downloadpuppet-6900f9776a7875ea13cbb5fe1f2eaa48fe05e667.tar.gz
puppet-6900f9776a7875ea13cbb5fe1f2eaa48fe05e667.tar.xz
puppet-6900f9776a7875ea13cbb5fe1f2eaa48fe05e667.zip
Adding a :to_text method that will convert the contained
thing to readable human text.
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/ssl/base.rb6
1 files changed, 6 insertions, 0 deletions
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