class LetsCert::CertFile

Cert file plugin @author Sylvain Daubert

Public Instance Methods

load_from_content(content) click to toggle source

@return [Hash]

# File lib/letscert/io_plugins/cert_file.rb, line 35
def load_from_content(content)
  { cert: load_cert(content) }
end
persisted() click to toggle source

@return [Hash] always get true for :cert key

# File lib/letscert/io_plugins/cert_file.rb, line 30
def persisted
  @persisted ||= { cert: true }
end
save(data) click to toggle source

Save certificate. @param [Hash] data @return [void]

# File lib/letscert/io_plugins/cert_file.rb, line 42
def save(data)
  save_to_file(dump_cert(data[:cert]))
end