Sha256: 66a5c9c8f576204e22b4ae2accd292a0e8d5d220a1cb1292e0959a0c51a30088

Contents?: true

Size: 251 Bytes

Versions: 1

Compression:

Stored size: 251 Bytes

Contents

require 'tmpdir'

module Heirloom
  module Misc
    module Tmp
      def random_archive
        random_text = (0...8).map{65.+(Kernel.rand(25)).chr}.join
        local_build = File.join(Dir.tmpdir, random_text + ".tar.gz")
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heirloom-0.5.0rc2 lib/heirloom/misc/tmp.rb