debian-mirror-gitlab/lib/gitlab/environment.rb
2018-12-13 13:39:08 +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