brew/Library/Homebrew/compat/fileutils.rb
Mike McQuaid 0a76c9f02e mktemp: move to Formula and compat.
Move this method away from FileUtils as it doesn't need to be on that
class.
2018-07-13 14:42:49 +01:00

16 lines
289 B
Ruby

require "fileutils"
module FileUtils
module Compat
def mktemp(prefix = name, opts = {})
# odeprecated("FileUtils.mktemp", "mktemp")
Mktemp.new(prefix, opts).run do |staging|
yield staging
end
end
module_function :mktemp
end
prepend Compat
end