class LetsCert::KeyFile
Key file plugin @author Sylvain Daubert
Public Instance Methods
load_from_content(content)
click to toggle source
@return [Hash]
# File lib/letscert/io_plugins/key_file.rb, line 35 def load_from_content(content) { key: load_key(content) } end
persisted()
click to toggle source
@return [Hash] always get true
for :key
key
# File lib/letscert/io_plugins/key_file.rb, line 30 def persisted @persisted ||= { key: true } end
save(data)
click to toggle source
Save private key. @param [Hash] data @return [void]
# File lib/letscert/io_plugins/key_file.rb, line 42 def save(data) save_to_file(dump_key(data[:key])) end