Sha256: 211842f5c54197d6025a079052cebb9da7f48264c79d98a496628a187b03671f
Contents?: true
Size: 465 Bytes
Versions: 110
Compression:
Stored size: 465 Bytes
Contents
class FakePassenger def initialize @handlers = {} end def on_event(name, &handler) @handlers[name] ||= [] @handlers[name] << handler end def call_event(name, *args) if @handlers[name] @handlers[name].each do |handler| handler.call(*args) end end end def become_master $0 = "PassengerApplicationSpawner" end def spawn $0 = "PassengerFork" call_event(:starting_worker_process, true) end end
Version data entries
110 entries across 110 versions & 2 rubygems