debian-mirror-gitlab/lib/gitlab/environment.rb
2023-01-12 18:35:48 +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