debian-mirror-gitlab/lib/gitlab/environment.rb
2023-01-13 15:02:22 +05:30

9 lines
164 B
Ruby

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