Class: Invoker::IPC::DnsCheckCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Invoker::IPC::DnsCheckCommand
- Defined in:
- lib/invoker/ipc/dns_check_command.rb
Instance Attribute Summary
Attributes inherited from BaseCommand
Instance Method Summary collapse
Methods inherited from BaseCommand
Constructor Details
This class inherits a constructor from Invoker::IPC::BaseCommand
Instance Method Details
#run_command(message_object) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/invoker/ipc/dns_check_command.rb', line 4 def run_command() process_detail = Invoker.dns_cache[.process_name] dns_check_response = Invoker::IPC::Message::DnsCheckResponse.new( process_name: .process_name, port: process_detail ? process_detail['port'] : nil, ip: process_detail && process_detail['ip'] ? process_detail['ip'] : '0.0.0.0' ) send_data(dns_check_response) true end |