debian-mirror-gitlab/lib/gitlab/environment.rb
2022-11-25 23:54:43 +05:30

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