Class: Berkshelf::API::ApplicationSupervisor
- Inherits:
-
Celluloid::SupervisionGroup
- Object
- Celluloid::SupervisionGroup
- Berkshelf::API::ApplicationSupervisor
- Defined in:
- lib/berkshelf/api/application.rb
Instance Method Summary collapse
-
#initialize(registry, options = {}) ⇒ ApplicationSupervisor
constructor
A new instance of ApplicationSupervisor.
Constructor Details
#initialize(registry, options = {}) ⇒ ApplicationSupervisor
Returns a new instance of ApplicationSupervisor.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/berkshelf/api/application.rb', line 13 def initialize(registry, = {}) super(registry) supervise_as(:cache_manager, Berkshelf::API::CacheManager) supervise_as(:cache_builder, Berkshelf::API::CacheBuilder) unless [:disable_http] require_relative 'rest_gateway' supervise_as(:rest_gateway, Berkshelf::API::RESTGateway, ) end end |