gitlab-org--gitlab-foss/lib/gitlab/environment.rb
2018-10-22 07:00:50 +00:00

9 lines
164 B
Ruby

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