lib/puppet/x509/pem_store.rb
# Save pem encoded content to a file. If the file doesn't exist, it
# will be created. Otherwise, the file will be overwritten. In both
# cases the contents will be overwritten atomically so other
# processes don't see a partially written file.
#
# @param pem [String] The PEM encoded object to write
# @param path [String] The file path to write to
# @raise [Errno::EACCES] if permission is denied
# @raise [Errno::EPERM] if the operation cannot be completed
# @api private
Save pem encoded content to a file. If the file doesn't exist, it
will be created. Otherwise, the file will be overwritten. In both
cases the contents will be overwritten atomically so other
processes don't see a partially written file.
Save pem encoded content to a file . If the file doesn ' t exist it will be created . Otherwise the file will be overwritten . In both cases the contents will be overwritten atomically so other processes don ' t see a partially written file .
def save_pem(pem, path)
    if Puppet::Util::Platform.windows?
      save_pem_win32(pem, path)
    else
      save_pem_posix(pem, path)
    end
  end
def save_pem ( pem , path ) if Puppet :: Util :: Platform . windows? save_pem_win32 ( pem , path ) else save_pem_posix ( pem , path ) end end
Save pem encoded content to a file.
Save pem encoded content to a file .
[Errno::EACCES] if permission is denied
[ Errno :: EACCES ] if permission is denied
[Errno::EPERM] if the operation cannot be completed
[ Errno :: EPERM ] if the operation cannot be completed
pem
The PEM encoded object to write
The PEM encoded object to write
path
The file path to write to
The file path to write to
api
None