Class: LetsCert::CertFile
- Inherits:
-
OpenSSLIOPlugin
- Object
- IOPlugin
- OpenSSLIOPlugin
- LetsCert::CertFile
- Includes:
- FileIOPluginMixin
- Defined in:
- lib/letscert/io_plugin.rb
Overview
Cert file plugin
Constant Summary
Constants inherited from OpenSSLIOPlugin
Constants inherited from IOPlugin
Instance Attribute Summary
Attributes inherited from IOPlugin
Instance Method Summary collapse
Methods included from FileIOPluginMixin
Methods inherited from OpenSSLIOPlugin
#dump_key, #initialize, #load_cert, #load_key
Methods inherited from IOPlugin
empty_data, #initialize, #load, #logger, logger=, register, registered
Constructor Details
This class inherits a constructor from LetsCert::OpenSSLIOPlugin
Instance Method Details
#load_from_content(content) ⇒ Object
323 324 325 |
# File 'lib/letscert/io_plugin.rb', line 323 def load_from_content(content) { cert: load_cert(content) } end |
#persisted ⇒ Object
319 320 321 |
# File 'lib/letscert/io_plugin.rb', line 319 def persisted @persisted ||= { cert: true } end |
#save(data) ⇒ Object
327 328 329 |
# File 'lib/letscert/io_plugin.rb', line 327 def save(data) save_to_file(dump_cert(data[:cert])) end |