Spec-Zone.ru › Homebrew

Module: OS::Mac::Sandbox Private

Extended by:
T::Helpers
Included in:
Sandbox
Defined in:
extend/os/mac/sandbox.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.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

  • #allow_write_temp_and_cache ⇒ void private
  • #allow_write_xcode ⇒ void private

    Xcode projects expect access to certain cache/archive dirs.

Instance Method Details

#allow_write_temp_and_cache ⇒ void

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.

This method returns an undefined value.



47
48
49
50
51
52
# File 'extend/os/mac/sandbox.rb', line 47

def allow_write_temp_and_cache
  allow_write_path "/private/tmp"
  allow_write_path "/private/var/tmp"
  allow_write path: "^/private/var/folders/[^/]+/[^/]+/[C,T]/", type: :regex
  super
end

#allow_write_xcode ⇒ void

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.

This method returns an undefined value.

Xcode projects expect access to certain cache/archive dirs.



56
57
58
# File 'extend/os/mac/sandbox.rb', line 56

def allow_write_xcode
  home_write_paths.each { |path| allow_write_path path }
end

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

Spec-Zone.ru

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