forked from toolshed/abra
refactor: construct recipe struct proper
This commit is contained in:
@ -42,6 +42,10 @@ func (r Recipe) UpdateTag(image, tag string) error {
|
||||
|
||||
// Get retrieves a recipe.
|
||||
func Get(recipeName string) (Recipe, error) {
|
||||
if err := EnsureExists(recipeName); err != nil {
|
||||
return Recipe{}, err
|
||||
}
|
||||
|
||||
pattern := fmt.Sprintf("%s/%s/compose**yml", config.APPS_DIR, recipeName)
|
||||
composeFiles, err := filepath.Glob(pattern)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user