summaryrefslogtreecommitdiffstats
path: root/lib/puppet/ssl/certificate.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-08-04 11:01:34 -0500
committerLuke Kanies <luke@madstop.com>2008-08-04 11:01:34 -0500
commit6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e (patch)
tree3d98a73e7dfa24f084856f44735a808a3151019f /lib/puppet/ssl/certificate.rb
parentc464bf21676c907642be3ad2c71b941318469325 (diff)
downloadpuppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.tar.gz
puppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.tar.xz
puppet-6c80e0ff6ae5e69bccd46bb2bd6261b78626f01e.zip
Making all certificates only support the plaintext format.
None of them actually support yaml or marshal by default, and plaintext is easiest anyway. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet/ssl/certificate.rb')
-rw-r--r--lib/puppet/ssl/certificate.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/ssl/certificate.rb b/lib/puppet/ssl/certificate.rb
index 16af85d06..82f251d9c 100644
--- a/lib/puppet/ssl/certificate.rb
+++ b/lib/puppet/ssl/certificate.rb
@@ -12,6 +12,12 @@ class Puppet::SSL::Certificate < Puppet::SSL::Base
extend Puppet::Indirector
indirects :certificate, :terminus_class => :file
+ # Because of how the format handler class is included, this
+ # can't be in the base class.
+ def self.supported_formats
+ [:str]
+ end
+
def expiration
return nil unless content
return content.not_after