Welcome to mirror list, hosted at ThFree Co, Russian Federation.

environment.rb « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1a9603d3a5db97c02c7554027d3cd7d86f74233 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

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