Spec-Zone.ru › Homebrew

Module: OS::Mac::Cask::Artifact::Moved Private

Extended by:
T::Helpers
Included in:
Cask::Artifact::Moved
Defined in:
extend/os/mac/cask/artifact/moved.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.

Instance Method Summary collapse

  • #backup_copy_args(target, source) ⇒ Array<String, ::Pathname> private
  • #undeletable?(target) ⇒ Boolean private

Instance Method Details

#backup_copy_args(target, source) ⇒ Array<String, ::Pathname>

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.

Parameters:

  • target (::Pathname)
  • source (::Pathname)

Returns:

  • (Array<String, ::Pathname>)


21
22
23
24
25
26
27
28
# File 'extend/os/mac/cask/artifact/moved.rb', line 21

def backup_copy_args(target, source)
  args = super

  return args if MacOS.version < :sonoma
  return args if target.stat.dev != source.dirname.stat.dev

  ["-c", *args]
end

#undeletable?(target) ⇒ Boolean

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.

Parameters:

  • target (::Pathname)

Returns:

  • (Boolean)


16
17
18
# File 'extend/os/mac/cask/artifact/moved.rb', line 16

def undeletable?(target)
  MacOS.undeletable?(target)
end

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

Spec-Zone.ru

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