File: service.rb

package info (click to toggle)
ruby-celluloid 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 848 kB
  • sloc: ruby: 7,579; makefile: 10
file content (27 lines) | stat: -rw-r--r-- 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
module Celluloid
  module Supervision
    module Service
      class Root < Container
        class << self
          def define
            super({
              supervise: Celluloid.actor_system.root_configuration,
              as: :root_supervisor,
              accessors: [:root],
              branch: :root,
              type: self
            })
          end

          def deploy(instances)
            super(supervise: instances, branch: :root, as: :root, type: self)
          end
        end
        def provider
          Celluloid.root_services
        end
      end
      class Public < Container; end
    end
  end
end