Sha256: dd6807759f206c202170e619c2ed6c42219bcda07e74d492afc0acc4f173d5dd
Contents?: true
Size: 315 Bytes
Versions: 9
Compression:
Stored size: 315 Bytes
Contents
class RSUtils def self.mk_rs_cache_dir(prefix=nil) tmpdir = Dir.tmpdir _prefix = prefix || "cap-rightscale" begin path = "#{tmpdir}/#{_prefix}-#{ENV['USER']}-#{rand(0x100000000).to_s(36)}" Dir.mkdir(path, 0700) rescue Errno::EEXIST logger.warn(e) exit(1) end end end
Version data entries
9 entries across 9 versions & 1 rubygems