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
-
#+(other) ⇒ Object
private
-
#/(other) ⇒ Object
private
-
#cp_path_sub(pattern, replacement) ⇒ Object
private
-
#install_p(_, new_basename) ⇒ Object
private
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.
25 26 27 |
# File 'install_renamed.rb', line 25 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.
29 30 31 |
# File 'install_renamed.rb', line 29 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.
19 20 21 22 23 |
# File 'install_renamed.rb', line 19 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.
8 9 10 11 12 13 14 15 16 17 |
# File 'install_renamed.rb', line 8 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 |