Class: ProcessCommand::Socket::Sender
- Inherits:
-
Object
- Object
- ProcessCommand::Socket::Sender
- Defined in:
- lib/process_command/socket/sender.rb
Class Method Summary collapse
Class Method Details
.send(command, pid) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/process_command/socket/sender.rb', line 10 def send(command, pid) command = command.to_s path = Setting.socket_path pid server = UNIXSocket.new path server.write command server.close rescue Exception => e ProcessCommand.logger.error "send error, #{e.}" end |