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.
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.
16 17 18 |
# File 'extend/os/mac/cask/artifact/moved.rb', line 16 def undeletable?(target) MacOS.undeletable?(target) end |