Class: Invoker::IPC::TailCommand

Inherits:
BaseCommand show all
Defined in:
lib/invoker/ipc/tail_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
8
# File 'lib/invoker/ipc/tail_command.rb', line 4

def run_command(message_object)
  Invoker::Logger.puts("Adding #{message_object.process_names.inspect}")
  Invoker.tail_watchers.add(message_object.process_names, client_socket)
  false
end