Try 07
This commit is contained in:
parent
fbbadce952
commit
982072494e
|
@ -3,6 +3,7 @@ package templater
|
|||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/imdario/mergo"
|
||||
|
@ -76,7 +77,8 @@ func (tc *TemplaterConfig) New(confpath string, templateDir string) error {
|
|||
}
|
||||
|
||||
func (tc *TemplaterConfig) ManageServices(rootDir string) error {
|
||||
for _, svr := range tc.Services {
|
||||
for name, svr := range tc.Services {
|
||||
log.Printf("Working on service %s", name)
|
||||
if err := svr.Manage(tc.TemplateDirectory, rootDir); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -42,7 +42,6 @@ func (s *Service) manageRepos(repos map[string]Repository) error {
|
|||
}
|
||||
|
||||
func (s *Service) Manage(templateDir string, rootDir string) error {
|
||||
|
||||
// Manage packages repositories
|
||||
log.Print("Managing package repositories")
|
||||
err := s.manageRepos(s.Repos)
|
||||
|
|
Loading…
Reference in New Issue