Sha256: a65a45703bd940bb6c234beee7a95a75b32592e377e9212701d97b85e5f3b79a

Contents?: true

Size: 639 Bytes

Versions: 8

Compression:

Stored size: 639 Bytes

Contents

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
celluloid-supervision-0.20.6 lib/celluloid/supervision/service.rb
celluloid-supervision-0.20.5 lib/celluloid/supervision/service.rb
celluloid-supervision-0.20.1.1 lib/celluloid/supervision/service.rb
celluloid-supervision-0.20.1 lib/celluloid/supervision/service.rb
celluloid-supervision-0.20.0 lib/celluloid/supervision/service.rb
celluloid-supervision-0.20.0.pre6 lib/celluloid/supervision/service.rb
celluloid-supervision-0.20.0.pre5 lib/celluloid/supervision/service.rb
celluloid-supervision-0.20.0.pre4 lib/celluloid/supervision/service.rb