Method: Atatus::Metadata::SystemInfo::HWInfo#hostid

Defined in:
lib/atatus/metadata/system_info/hw_info.rb

#hostidObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

rubocop:disable Metrics/MethodLength



53
54
55
56
57
58
59
# File 'lib/atatus/metadata/system_info/hw_info.rb', line 53

def hostid
  @hostid ||=
    begin
      return Socket.gethostname if @host_bootid.nil?
      @host_bootid
    end
end