class Dir
Public Class Methods
mkranddir()
click to toggle source
# File lib/cocoapods-freezer/dir.rb, line 11 def self.mkranddir path = randdir path.mkpath path end
randdir()
click to toggle source
# File lib/cocoapods-freezer/dir.rb, line 2 def self.randdir path = nil while (path == nil || path.exist?) do path = Pathname.new(Dir.tmpdir + rand(999999).to_s) #todo(ca1md0wn) end path end