Spec-Zone.ru › Homebrew

Module: Utils::UID Private

Defined in:
utils/uid.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Class Method Summary collapse

  • .uid_home ⇒ String? private

Class Method Details

.uid_home ⇒ String?

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (String, nil)


7
8
9
10
11
12
13
# File 'utils/uid.rb', line 7

def self.uid_home
  require "etc"
  Etc.getpwuid(Process.uid)&.dir
rescue ArgumentError
  # Cover for misconfigured NSS setups
  nil
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/Utils/UID.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API