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_win32(pem, path)
    save_pem_posix(pem, path)
  rescue Puppet::Util::Windows::Error => e
    case e.code
    when ACCESS_DENIED, SHARING_VIOLATION, LOCK_VIOLATION
      raise Errno::EACCES.new(path, e)
    else
      raise SystemCallError.new(e.message, e)
    end
  end
def save_pem_win32 ( pem , path ) save_pem_posix ( pem , path ) rescue Puppet :: Util :: Windows :: Error => e case e . code when ACCESS_DENIED , SHARING_VIOLATION , LOCK_VIOLATION raise Errno :: EACCES . new ( path , e ) else raise SystemCallError . new ( e . message , e ) end end
Load a pem encoded object.
Load a pem encoded object .
# Puppet::Util.replace_file should be implemented in Puppet::FileSystem # and raise Errno-based exceptions
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