Class: Proxy
- Inherits:
-
Object
- Object
- Proxy
- Defined in:
- lib/galerab/proxy.rb
Class Method Summary collapse
-
.kill_childs(servers, signal) ⇒ Object
this is not used.
- .stop ⇒ Object
Class Method Details
.kill_childs(servers, signal) ⇒ Object
this is not used
8 9 10 11 12 13 14 15 |
# File 'lib/galerab/proxy.rb', line 8 def self.kill_childs(servers, signal) servers.each do |server| puts "Killing process #{server[:pid]} with #{signal} signal." Process.kill(signal, server[:pid]) end Process.kill(signal, Process.pid) end |
.stop ⇒ Object
2 3 4 5 |
# File 'lib/galerab/proxy.rb', line 2 def self.stop puts "Terminating ProxyServer" EventMachine.stop end |