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

13 lines
234 B
Ruby

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