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) ⇒ Pathname

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.

Parameters:

Returns:

 32 33 34
# File 'install_renamed.rb', line 32 def +(other) super.extend(InstallRenamed) end

#/(other) ⇒ Pathname

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.

Parameters:

Returns:

 37 38 39
# File 'install_renamed.rb', line 37 def /(other) super.extend(InstallRenamed) end

#cp_path_sub(pattern, replacement, &_block) ⇒ 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:

 25 26 27 28 29
# File 'install_renamed.rb', line 25 def cp_path_sub(pattern, replacement, &_block) super do |src, dst| append_default_if_different(src, dst) end end

#install_p(src, new_basename, &_block) ⇒ 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:

 10 11 12 13 14 15 16 17 18 19
# File 'install_renamed.rb', line 10 def install_p(src, new_basename, &_block) super do |src, dst| if src.directory? dst.install(src.children) next else append_default_if_different(src, dst) end end end