Module: OS::Linux::Cask::Artifact::Symlinked Private

Extended by:
T::Helpers
Included in:
Cask::Artifact::Symlinked
Defined in:
extend/os/linux/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

Instance Method Details

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:



14
15
16
17
18
19
# File 'extend/os/linux/cask/artifact/symlinked.rb', line 14

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

  command.run! "/bin/ln", args: ["--no-dereference", "--force", "--symbolic", source, target],
                          sudo: !target.dirname.writable?
end