boskos/ranch/storage.go
func ParseConfig(configPath string) ([]common.Resource, error) {
	file, err := ioutil.ReadFile(configPath)
	if err != nil {
		return nil, err
	}

	var data common.BoskosConfig
	err = yaml.Unmarshal(file, &data)
	if err != nil {
		return nil, err
	}

	var resources []common.Resource
	for _, entry := range data.Resources {
		resources = append(resources, common.NewResourcesFromConfig(entry)...)
	}
	return resources, nil
}
func ParseConfig(configPath string) ([]common.Resource, error) {
	file, err := ioutil.ReadFile(configPath)
	if err != nil {
		return nil, err
	}

	var data common.BoskosConfig
	err = yaml.Unmarshal(file, &data)
	if err != nil {
		return nil, err
	}

	var resources []common.Resource
	for _, entry := range data.Resources {
		resources = append(resources, common.NewResourcesFromConfig(entry)...)
	}
	return resources, nil
}
// ParseConfig reads in configPath and returns a list of resource objects
// on success.