Method: NewRelic::Agent::Hostname.local?

Defined in:
lib/new_relic/agent/hostname.rb

.local?(host_or_ip) ⇒ Boolean

Returns:

  • (Boolean)
[View source]

60
61
62
# File 'lib/new_relic/agent/hostname.rb', line 60

def self.local?(host_or_ip)
  LOCALHOST.include?(host_or_ip)
end