Sha256: e517165f360c70ea989e578fcb382a3f2f3351e4d9d98b7d69b21298a00604c4
Contents?: true
Size: 316 Bytes
Versions: 9
Compression:
Stored size: 316 Bytes
Contents
require 'fileutils' module RSCM def new_temp_dir(suffix="") identifier = identifier.to_s identifier.gsub!(/\(|:|\)/, '_') dir = File.dirname(__FILE__) + "/../../target/temp_#{identifier}_#{Time.new.to_i}#{suffix}" FileUtils.mkdir_p(dir) dir end module_function :new_temp_dir end
Version data entries
9 entries across 9 versions & 1 rubygems