class LetsCert::ChainFile
Chain file plugin @author Sylvain Daubert
Public Instance Methods
load_from_content(content)
click to toggle source
@return [Hash]
# File lib/letscert/io_plugins/chain_file.rb, line 35 def load_from_content(content) chain = [] split_pems(content) do |pem| chain << load_cert(pem) end { chain: chain } end
persisted()
click to toggle source
@return [Hash] always get true
for :chain
key
# File lib/letscert/io_plugins/chain_file.rb, line 30 def persisted @persisted ||= { chain: true } end
save(data)
click to toggle source
Save chain. @param [Hash] data @return [void]
# File lib/letscert/io_plugins/chain_file.rb, line 46 def save(data) save_to_file(data[:chain].map { |c| dump_cert(c) }.join) end