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

Version Path
rscm-0.1.0.1337 test/rscm/tempdir.rb
rscm-0.1.0.999 test/rscm/tempdir.rb
rscm-0.1.0.1338 test/rscm/tempdir.rb
rscm-0.3.0 test/rscm/tempdir.rb
rscm-0.2.1.1404 test/rscm/tempdir.rb
rscm-0.3.2 lib/rscm/tempdir.rb
rscm-0.3.1 test/rscm/tempdir.rb
rscm-0.1.0 test/rscm/tempdir.rb
rscm-0.2.0 test/rscm/tempdir.rb