Sha256: 255bb495a2540e0e67d676c723af6ea74c06d0c06287f848d083110f097c6b72

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

require 'tmpdir'
require 'fileutils'

module Helpers
  module SCM
    ROOT_DIR = File.join(Dir.tmpdir,'scm')

    def directory(name)
      File.join(ROOT_DIR,name)
    end

    def mkdir(name)
      path = directory(name)

      FileUtils.mkdir_p(path)
      return path
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scm-0.1.0.pre2 spec/helpers/scm.rb
scm-0.1.0.pre1 spec/helpers/scm.rb