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