gitlab-org--gitlab-foss/lib/gitlab/environment.rb
2017-08-04 15:38:49 +02:00

7 lines
133 B
Ruby

module Gitlab
module Environment
def self.hostname
@hostname ||= ENV['HOSTNAME'] || Socket.gethostname
end
end
end