class Berkshelf::API::ApplicationSupervisor
Public Class Methods
new(registry, options = {})
click to toggle source
@option options [Boolean] :disable_http (false)
run the application without the rest gateway
Calls superclass method
# File lib/berkshelf/api/application.rb, line 13 def initialize(registry, options = {}) super(registry) supervise_as(:cache_manager, Berkshelf::API::CacheManager) supervise_as(:cache_builder, Berkshelf::API::CacheBuilder) unless options[:disable_http] require_relative 'rest_gateway' supervise_as(:rest_gateway, Berkshelf::API::RESTGateway, options) end end