Sha256: 10c361703c8cd0e1542119e013798dab788b41260d48c81ae200805f3956d388
Contents?: true
Size: 470 Bytes
Versions: 5
Compression:
Stored size: 470 Bytes
Contents
module Bluepill module Application module ServerMethods def status 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) end def stop self.socket = Bluepill::Socket.new(name, base_dir).client socket.send("stop\n", 0) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems