Class: Falcon::Configuration

Inherits:
Async::Service::Configuration
  • Object
show all
Defined in:
lib/falcon/configuration.rb

Overview

Manages environments which describes how to host a specific application.

Environments are key-value maps with lazy value resolution. An environment can inherit from a parent environment, which can provide defaults

A typical configuration file might look something like:

~~~ ruby #!/usr/bin/env falcon-host # frozen_string_literal: true

load :rack, :self_signed_tls, :supervisor

supervisor

rack ‘hello.localhost’, :self_signed_tls do end ~~~

Defined Under Namespace

Classes: Loader

Instance Method Summary collapse

Instance Method Details

#load_file(path) ⇒ Object

Load the specified configuration file. See #load_file for more details.



30
31
32
# File 'lib/falcon/configuration.rb', line 30

def load_file(path)
	Loader.load_file(self, path)
end