Sha256: 6e4d217511837dcdb306e63c464b7146ac38a780c8e6d3ccc908ceb567dc610f

Contents?: true

Size: 457 Bytes

Versions: 10

Compression:

Stored size: 457 Bytes

Contents

module Invoker
  module IPC
    class DnsCheckCommand < BaseCommand
      def run_command(message_object)
        process_detail = Invoker.dns_cache[message_object.process_name]

        dns_check_response = Invoker::IPC::Message::DnsCheckResponse.new(
          process_name: message_object.process_name,
          port: process_detail ? process_detail['port'] : nil
        )
        send_data(dns_check_response)
        true
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
invoker-1.4.1 lib/invoker/ipc/dns_check_command.rb
invoker-1.4.0 lib/invoker/ipc/dns_check_command.rb
invoker-1.3.2 lib/invoker/ipc/dns_check_command.rb
invoker-1.3.1 lib/invoker/ipc/dns_check_command.rb
invoker-1.3.0 lib/invoker/ipc/dns_check_command.rb
invoker-1.2.0 lib/invoker/ipc/dns_check_command.rb
invoker-1.2.0.pre2 lib/invoker/ipc/dns_check_command.rb
invoker-1.2.0.pre1 lib/invoker/ipc/dns_check_command.rb
invoker-1.2.0.pre lib/invoker/ipc/dns_check_command.rb
invoker-1.1.0 lib/invoker/ipc/dns_check_command.rb