Module: NewRelic::Control::ServerMethods
- Included in:
- NewRelic::Control
- Defined in:
- lib/new_relic/control/server_methods.rb
Overview
Contains methods that deal with connecting to the server
Instance Method Summary collapse
-
#api_server ⇒ Object
the server we should contact for api requests, like uploading deployments and the like.
- #server ⇒ Object
- #server_from_host(hostname = nil) ⇒ Object
Instance Method Details
#api_server ⇒ Object
the server we should contact for api requests, like uploading deployments and the like
20 21 22 |
# 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 |
#server ⇒ Object
14 15 16 |
# File 'lib/new_relic/control/server_methods.rb', line 14 def server @remote_server ||= server_from_host(nil) end |