module Configured
This module provides a common interface for configuring the Falcon application.
Definitions
def configuration_paths
All the falcon application configuration paths.
Signature
-
returns
Array(String)
Paths to the falcon application configuration files.
Implementation
def configuration_paths
["/srv/http/*/falcon.rb"]
end
def resolved_configuration_paths
All the falcon application configuration paths, with wildcards expanded.
Implementation
def resolved_configuration_paths
if configuration_paths = self.configuration_paths
configuration_paths.flat_map do |path|
Dir.glob(path)
end.uniq
else
[]
end
end