Module: InstallRenamed Private

Defined in:
install_renamed.rb

Overview

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.

Helper module for installing default files.

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object

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.



23
24
25
# File 'install_renamed.rb', line 23

def +(other)
  super(other).extend(InstallRenamed)
end

#/(other) ⇒ Object

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.



27
28
29
# File 'install_renamed.rb', line 27

def /(other)
  super(other).extend(InstallRenamed)
end

#cp_path_sub(pattern, replacement) ⇒ Object

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.



17
18
19
20
21
# File 'install_renamed.rb', line 17

def cp_path_sub(pattern, replacement)
  super do |src, dst|
    append_default_if_different(src, dst)
  end
end

#install_p(_, new_basename) ⇒ Object

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.



6
7
8
9
10
11
12
13
14
15
# File 'install_renamed.rb', line 6

def install_p(_, new_basename)
  super do |src, dst|
    if src.directory?
      dst.install(src.children)
      next
    else
      append_default_if_different(src, dst)
    end
  end
end