Sha256: f55aadbb02c4149f82d5ad109cae7091d60ddf13a6ef4bd641083bba22d286c5
Contents?: true
Size: 321 Bytes
Versions: 81
Compression:
Stored size: 321 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
81 entries across 81 versions & 2 rubygems