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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
234 B
Ruby
Raw Normal View History

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