Method: NewRelic::Agent::Commands::AgentCommandRouter#invoke_command

Defined in:
lib/new_relic/agent/commands/agent_command_router.rb

#invoke_command(agent_command) ⇒ Object



107
108
109
110
111
112
113
114
115
# File 'lib/new_relic/agent/commands/agent_command_router.rb', line 107

def invoke_command(agent_command)
  begin
    call_handler_for(agent_command)
    return success
  rescue AgentCommandError => e
    NewRelic::Agent.logger.debug(e)
    error(e)
  end
end