Module: Gitlab::Environment

Defined in:
lib/gitlab/environment.rb

Class Method Summary collapse

Class Method Details

.hostnameObject


5
6
7
# File 'lib/gitlab/environment.rb', line 5

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