Sha256: 07b862265a1d3d71096bb0ec1085c6f43c41fc67f76ae15ce64a06277fe1bfca

Contents?: true

Size: 398 Bytes

Versions: 2

Compression:

Stored size: 398 Bytes

Contents

module Heroku
  module Forward
    module Utils
      
      module Dir
      
        # Partially borrowed from ruby 1.9's Dir::Tmpname.make_tmpname for 1.8.7-compatibility.
        def self.tmp_filename(prefix, suffix)
          File.join ::Dir.tmpdir, "#{prefix}#{Time.now.strftime("%Y%m%d")}-#{$$}-#{rand(0x100000000).to_s(36)}#{suffix}"
        end
        
      end
      
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku-forward-0.4.0 lib/heroku/forward/utils/dir.rb
heroku-forward-0.3.1 lib/heroku/forward/utils/dir.rb