Sha256: 176e5a8b086e08c7e80360e58c913d05d23bfdb06136fc2c49ef3729256e781c
Contents?: true
Size: 323 Bytes
Versions: 52
Compression:
Stored size: 323 Bytes
Contents
require "socket" require "securerandom" module Skylight module Util module Hostname def self.default_hostname if (hostname = Socket.gethostname) hostname.strip! hostname = nil if hostname == "" end hostname || "gen-#{SecureRandom.uuid}" end end end end
Version data entries
52 entries across 52 versions & 1 rubygems