debian-mirror-gitlab/lib/gitlab/environment.rb
2017-09-10 17:25:29 +05:30

7 lines
133 B
Ruby

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