module Falcon::Environment::Configured

def configuration

def configuration
	::Async::Service::Configuration.load(resolved_configuration_paths)
end

def configuration_paths

@returns [Array(String)] Paths to the falcon application configuration files.
All the falcon application configuration paths.
def configuration_paths
	["/srv/http/*/falcon.rb"]
end

def resolved_configuration_paths

All the falcon application configuration paths, with wildcards expanded.
def resolved_configuration_paths
	if configuration_paths = self.configuration_paths
		configuration_paths.flat_map do |path|
			Dir.glob(path)
		end.uniq
	else
		[]
	end
end