Class: LetsCert::KeyFile
- Inherits:
-
OpenSSLIOPlugin
- Object
- IOPlugin
- OpenSSLIOPlugin
- LetsCert::KeyFile
- Includes:
- FileIOPluginMixin
- Defined in:
- lib/letscert/io_plugin.rb
Overview
Key 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
251 252 253 |
# File 'lib/letscert/io_plugin.rb', line 251 def load_from_content(content) { key: load_key(content) } end |
#persisted ⇒ Object
247 248 249 |
# File 'lib/letscert/io_plugin.rb', line 247 def persisted @persisted ||= { key: true } end |
#save(data) ⇒ Object
255 256 257 |
# File 'lib/letscert/io_plugin.rb', line 255 def save(data) save_to_file(dump_key(data[:key])) end |