brew/Library/Homebrew/compat/pathname.rb
2016-07-29 21:21:29 -06:00

18 lines
325 B
Ruby

class Pathname
def cp(dst)
odeprecated "Pathname#cp", "FileUtils.cp"
if file?
FileUtils.cp to_s, dst
else
FileUtils.cp_r to_s, dst
end
dst
end
def chmod_R(perms)
odeprecated "Pathname#chmod_R", "FileUtils.chmod_R"
require "fileutils"
FileUtils.chmod_R perms, to_s
end
end