mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
12 lines
252 B
Ruby
12 lines
252 B
Ruby
module Test
|
|
module Helper
|
|
module MkTmpDir
|
|
def mktmpdir(prefix_suffix = nil)
|
|
new_dir = Pathname.new(Dir.mktmpdir(prefix_suffix, HOMEBREW_TEMP))
|
|
return yield new_dir if block_given?
|
|
new_dir
|
|
end
|
|
end
|
|
end
|
|
end
|