/usr/lib/ruby/vendor_ruby/celluloid/supervisor.rb is in ruby-celluloid 0.16.0-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | module Celluloid
# Supervisors are actors that watch over other actors and restart them if
# they crash
class Supervisor
class << self
# Define the root of the supervision tree
attr_accessor :root
def supervise(klass, *args, &block)
SupervisionGroup.new do |group|
group.supervise klass, *args, &block
end
end
def supervise_as(name, klass, *args, &block)
SupervisionGroup.new do |group|
group.supervise_as name, klass, *args, &block
end
end
end
end
end
|