Sha256: b48e0ba66d184e0d22c53b844039c8e7b5bbb4bfa634f03553b9fc0a14f0f185
Contents?: true
Size: 530 Bytes
Versions: 56
Compression:
Stored size: 530 Bytes
Contents
module Bluepill module Application module ServerMethods def status buffer = "" self.processes.each do | process | buffer << "#{process.name} #{process.state}\n" + end buffer end def restart 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 socket.send("stop\n", 0) end end end end
Version data entries
56 entries across 56 versions & 8 rubygems