lib/bluepill/application/server.rb in bluepill-0.0.44 vs lib/bluepill/application/server.rb in bluepill-0.0.45
- old
+ new
@@ -1,14 +1,12 @@
module Bluepill
module Application
module ServerMethods
def status
- buffer = ""
- self.processes.each do | process |
- buffer << "#{process.name} #{process.state}\n" +
- end
- buffer
+ self.processes.collect do |process|
+ "#{process.name} #{process.state}"
+ end.join("\n")
end
def restart
self.socket = Bluepill::Socket.new(name, base_dir).client
socket.send("restart\n", 0)
\ No newline at end of file