lib/bluepill/application/server.rb in bluepill-0.0.46 vs lib/bluepill/application/server.rb in bluepill-0.0.47
- old
+ new
@@ -1,21 +1,22 @@
+# -*- encoding: utf-8 -*-
module Bluepill
module Application
module ServerMethods
-
+
def status
self.processes.collect do |process|
"#{process.name} #{process.state}"
end.join("\n")
end
def restart
- self.socket = Bluepill::Socket.new(name, base_dir).client
+ self.socket = Bluepill::Socket.new(name, base_dir).client
socket.send("restart\n", 0)
end
def stop
- self.socket = Bluepill::Socket.new(name, base_dir).client
+ self.socket = Bluepill::Socket.new(name, base_dir).client
socket.send("stop\n", 0)
end
end
end
end
\ No newline at end of file