Module: InstallRenamed

Defined in:
brew/Library/Homebrew/install_renamed.rb

Instance Method Summary collapse

Instance Method Details

#+(other) ⇒ Object



21
22
23
# File 'brew/Library/Homebrew/install_renamed.rb', line 21

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

#/(other) ⇒ Object



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

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

#cp_path_sub(pattern, replacement) ⇒ Object



15
16
17
18
19
# File 'brew/Library/Homebrew/install_renamed.rb', line 15

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

#install_p(_, new_basename) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'brew/Library/Homebrew/install_renamed.rb', line 4

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