Sha256: 4212795fc339fc78651592965a81f488b5dd1bc24d8ae705d18ab43800d401c9
Contents?: true
Size: 501 Bytes
Versions: 32
Compression:
Stored size: 501 Bytes
Contents
# -*- 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 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
32 entries across 32 versions & 6 rubygems