Module: EventedBluepill::Application::ServerMethods
- Defined in:
- lib/evented_bluepill/application/server.rb
Instance Method Summary collapse
Instance Method Details
#restart ⇒ Object
13 14 15 16 |
# File 'lib/evented_bluepill/application/server.rb', line 13 def restart self.socket = EventedBluepill::Socket.new(name, base_dir).client socket.send("restart\n", 0) end |
#status ⇒ Object
7 8 9 10 11 |
# File 'lib/evented_bluepill/application/server.rb', line 7 def status self.processes.collect do |process| "#{process.name} #{process.state}" end.join("\n") end |
#stop ⇒ Object
18 19 20 21 |
# File 'lib/evented_bluepill/application/server.rb', line 18 def stop self.socket = EventedBluepill::Socket.new(name, base_dir).client socket.send("stop\n", 0) end |