// ReadConfigFromDir reads the whole configuration for Cobalt from a directory on the file system.
// It is assumed that <rootDir>/projects.yaml contains the customers and projects list. (see project_list.go)
// It is assumed that <rootDir>/<customerName>/<projectName>/config.yaml
// contains the configuration for a project. (see project_config.go)
ReadConfigFromDir reads the whole configuration for Cobalt from a directory on the file system.
It is assumed that /projects.yaml contains the customers and projects list.
It is assumed that ///config.yaml
contains the configuration for a project.
// ReadConfigFromDir reads the whole configuration for Cobalt from a directory on the file system . // It is assumed that <rootDir > / projects . yaml contains the customers and projects list . ( see project_list . go ) // It is assumed that <rootDir > / <customerName > / <projectName > / config . yaml // contains the configuration for a project . ( see project_config . go )
func ReadConfigFromDir(rootDir string) (c config.CobaltConfig, err error) {
	r, err := newConfigReaderForDir(rootDir)
	if err != nil {
		return c, err
	}
	l := []projectConfig{}
	if err := readConfig(r, &l); err != nil {
		return c, err
	}
	return mergeConfigs(l), nil
}
func ReadConfigFromDir ( rootDir string ) ( c config . CobaltConfig , err error ) { r , err := newConfigReaderForDir ( rootDir ) if err != nil { return c , err } l := [ ] projectConfig { } if err := readConfig ( r , & l ) ; err != nil { return c , err } return mergeConfigs ( l ) , nil }
ReadConfigFromDir reads the whole configuration for Cobalt from a directory on the file system.
ReadConfigFromDir reads the whole configuration for Cobalt from a directory on the file system .