Module: InstallRenamed Private

Defined in:
Library/Homebrew/install_renamed.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Helper module for installing default files.

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


24
25
26
# File 'Library/Homebrew/install_renamed.rb', line 24

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

#/(other) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


28
29
30
# File 'Library/Homebrew/install_renamed.rb', line 28

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

#cp_path_sub(pattern, replacement) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.


18
19
20
21
22
# File 'Library/Homebrew/install_renamed.rb', line 18

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. You should avoid using this method if possible, as it may be removed or be changed in the future.


7
8
9
10
11
12
13
14
15
16
# File 'Library/Homebrew/install_renamed.rb', line 7

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