Spec-Zone.ru › Homebrew

Module: OS::Mac::Cask::Artifact::Symlinked Private

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

  • #create_filesystem_link(command) ⇒ void private

Instance Method Details

#create_filesystem_link(command) ⇒ 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.

Parameters:

  • command (T.class_of(SystemCommand))


16
17
18
19
20
21
22
23
# File 'extend/os/mac/cask/artifact/symlinked.rb', line 16

def create_filesystem_link(command)
  ::Cask::Utils.gain_permissions_mkpath(target.dirname, command:)

  command.run! "/bin/ln", args: ["-h", "-f", "-s", "--", source, target],
                          sudo: !target.dirname.writable?

  add_altname_metadata(source, target.basename, command:)
end

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

Spec-Zone.ru

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