Sha256: dcfb80e9c7282d4bc64ef18c4412f2fcd051a644019bb464e57564b3b3ae842a
Contents?: true
Size: 483 Bytes
Versions: 58
Compression:
Stored size: 483 Bytes
Contents
# Helper methods here and in the required files can be used by Origen during the bootup process. # (e.g., in site config ERB files) # This can be expanded as needed to provide more helpers. module Origen # NOTE: Gems are not allowed to be required here, only Ruby stlibs require 'socket' require_relative '../operating_systems' # Platform independent means of retrieving the hostname def self.hostname Socket.gethostbyname(Socket.gethostname).first.downcase end end
Version data entries
58 entries across 58 versions & 1 rubygems