15 lines
284 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-02-28 14:50:46 +01:00
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?
2018-09-17 02:45:00 +02:00
2017-02-28 14:50:46 +01:00
new_dir
end
end
end
end