Make install_p and install_symlink_p private
This commit is contained in:
parent
ab3d622da2
commit
1351f67e91
@ -57,7 +57,7 @@ class Pathname
|
|||||||
FileUtils.mv src, dst
|
FileUtils.mv src, dst
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
protected :install_p
|
private :install_p
|
||||||
|
|
||||||
# Creates symlinks to sources in this folder.
|
# Creates symlinks to sources in this folder.
|
||||||
def install_symlink *sources
|
def install_symlink *sources
|
||||||
@ -79,7 +79,7 @@ class Pathname
|
|||||||
mkpath
|
mkpath
|
||||||
FileUtils.ln_sf(src.relative_path_from(dst.parent), dst)
|
FileUtils.ln_sf(src.relative_path_from(dst.parent), dst)
|
||||||
end
|
end
|
||||||
protected :install_symlink_p
|
private :install_symlink_p
|
||||||
|
|
||||||
# we assume this pathname object is a file obviously
|
# we assume this pathname object is a file obviously
|
||||||
alias_method :old_write, :write if method_defined?(:write)
|
alias_method :old_write, :write if method_defined?(:write)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user