gitlab-org--gitlab-foss/lib/gitlab/environment.rb

8 lines
133 B
Ruby
Raw Normal View History

2017-08-03 06:16:45 -04:00
module Gitlab
module Environment
def self.hostname
@hostname ||= ENV['HOSTNAME'] || Socket.gethostname
end
end
end