class Falcon::Controller::Host
The configuration is provided by {Command::Host} and is typically loaded from a ‘falcon.rb` file. See {Configuration#load_file} for more details.
Hosts several {Services} based on the command configuration.
A generic controller for serving an application.
def create_container
Create the controller as specified by the command.
def create_container @command.container_class.new end
def initialize(command, **options)
Initialize the virtual controller.
def initialize(command, **options) @command = command @configuration = command.configuration @services = Services.new(@configuration) super(**options) end
def setup(container)
Setup all specified services into the container.
def setup(container) @services.setup(container) end
def start
def start @services.start super end
def stop(*)
def stop(*) @services.stop super end