Method: OatsAgent::Rclient#receive_object
- Defined in:
- lib/oats_agent/rclient.rb
#receive_object(response) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/oats_agent/rclient.rb', line 15 def receive_object(response) @response = response password = response.delete(:password) length = 500 resp = response.inspect resp = resp[0..length] + ' ..... ' + resp[-length..-1] if resp.size > 2*length client_logger "Received " + resp + " from" response[:password] = password client_logger "Command was not recognized" if response[:unknown_command] end |