module NewRelic::Control::ServerMethods
Contains methods that deal with connecting to the server
Public Instance Methods
Source
# File lib/new_relic/control/server_methods.rb, line 20 def api_server @api_server ||= NewRelic::Control::Server.new(Agent.config[:api_host], Agent.config[:api_port]) end
the server we should contact for api requests, like uploading deployments and the like
Source
# File lib/new_relic/control/server_methods.rb, line 14 def server @remote_server ||= server_from_host(nil) end
Source
# File lib/new_relic/control/server_methods.rb, line 24 def server_from_host(hostname = nil) NewRelic::Control::Server.new(hostname || Agent.config[:host], Agent.config[:port]) end