Class: Invoker::IPC::AddHttpCommand

Inherits:
BaseCommand show all
Defined in:
lib/invoker/ipc/add_http_command.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#client_socket

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize, #send_data

Constructor Details

This class inherits a constructor from Invoker::IPC::BaseCommand

Instance Method Details

#run_command(message_object) ⇒ Object



4
5
6
7
# File 'lib/invoker/ipc/add_http_command.rb', line 4

def run_command(message_object)
  Invoker.dns_cache.add(message_object.process_name, message_object.port, message_object.ip)
  true
end