ConfigDependency#
- class mobu.dependencies.config.ConfigDependency(path=PosixPath('/etc/mobu/config.yaml'))#
Bases:
objectDependency to manage a cached Mobu configuration.
The controller configuration is read on first request, cached, and returned to all dependency callers unless
set_pathis called to change the configuration.- Parameters:
path (
Path, default:PosixPath('/etc/mobu/config.yaml')) – Path to the Nublado mobu configuration.
Attributes Summary
Load configuration if needed and return it.
Whether the configuration has been initialized.
Methods Summary
Attributes Documentation
- config#
Load configuration if needed and return it.
- is_initialized#
Whether the configuration has been initialized.
Methods Documentation