lib/puppet/x509/pem_store.rb
# Load a pem encoded object.
#
# @param path [String] file path
# @return [String, nil] The PEM encoded object or nil if the
#  path does not exist
# @raise [Errno::EACCES] if permission is denied
# @api private
Load a pem encoded object.
Load a pem encoded object .
def save_pem_posix(pem, path)
    Puppet::Util.replace_file(path, 0644) do |f|
      f.set_encoding('UTF-8')
      f.write(pem.encode('UTF-8'))
    end
  end
def save_pem_posix ( pem , path ) Puppet :: Util . replace_file ( path , 0644 ) do | f | f . set_encoding ( 'UTF-8' ) f . write ( pem . encode ( 'UTF-8' ) ) end end
Load a pem encoded object.
Load a pem encoded object .
The PEM encoded object or nil if the path does not exist
The PEM encoded object or nil if the path does not exist
String, nil
[Errno::EACCES] if permission is denied
[ Errno :: EACCES ] if permission is denied
pem
<not_specific>
path
None
api
None