module ServerEngine::CommandSender::Pipe
requires @command_sender_pipe
Private Instance Methods
_detach()
click to toggle source
# File lib/serverengine/command_sender.rb, line 76 def _detach _send_command("DETACH") end
_dump()
click to toggle source
# File lib/serverengine/command_sender.rb, line 80 def _dump _send_command("DUMP") end
_reload()
click to toggle source
# File lib/serverengine/command_sender.rb, line 72 def _reload _send_command("RELOAD") end
_restart(graceful)
click to toggle source
# File lib/serverengine/command_sender.rb, line 68 def _restart(graceful) _send_command(graceful ? "GRACEFUL_RESTART" : "IMMEDIATE_RESTART") end
_send_command(cmd)
click to toggle source
# File lib/serverengine/command_sender.rb, line 84 def _send_command(cmd) @command_sender_pipe.write cmd + "\n" end
_stop(graceful)
click to toggle source
# File lib/serverengine/command_sender.rb, line 57 def _stop(graceful) begin _send_command(graceful ? "GRACEFUL_STOP" : "IMMEDIATE_STOP") rescue Errno::EPIPE # already stopped, then nothing to do ensure @command_sender_pipe.close rescue nil @command_sender_pipe = nil end end