Sha256: 47e19473fb1f2888e585b87ef71ec963d7391d79371444d918dbc5804b39e9c3
Contents?: true
Size: 193 Bytes
Versions: 1
Compression:
Stored size: 193 Bytes
Contents
module TempHelper def in_temp_dir(&blk) dir = File.join(Dir.tmpdir, "cli-#{rand}") FileUtils.mkdir_p(dir) Dir.chdir(dir) { yield dir } ensure FileUtils.rm_rf(dir) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aura-0.0.1.pre10 | test/test_temp_helper.rb |