module Bluepill::Application::ServerMethods

Public Instance Methods

restart() click to toggle source
# File lib/bluepill/application/server.rb, line 10
def restart
  self.socket = Bluepill::Socket.new(name, base_dir).client
  socket.send("restart\n", 0)
end
status() click to toggle source
# File lib/bluepill/application/server.rb, line 4
def status
  processes.collect do |process|
    "#{process.name} #{process.state}"
  end.join("\n")
end
stop() click to toggle source
# File lib/bluepill/application/server.rb, line 15
def stop
  self.socket = Bluepill::Socket.new(name, base_dir).client
  socket.send("stop\n", 0)
end