Module: InstallRenamed

Defined in:
Library/Homebrew/install_renamed.rb

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object



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

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

#/(other) ⇒ Object



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

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

#cp_path_sub(pattern, replacement) ⇒ Object



13
14
15
16
17
# File 'Library/Homebrew/install_renamed.rb', line 13

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

#install_p(_, new_basename) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'Library/Homebrew/install_renamed.rb', line 2

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