fix(bootstraper): adding global variables support
Now we can declare "global" variables, in the "Globals" section the the configuration, this variables will be merged into the "Service" variables and used in the templates. This how we share variables between services.
This commit is contained in:
@ -17,11 +17,11 @@ func main() {
|
||||
|
||||
var hostConfig templater.TemplaterConfig
|
||||
|
||||
err := hostConfig.New(args.Config, args.TemplateDirectory)
|
||||
err := hostConfig.New(args.Config, args.TemplateDirectory, args.RootDirectory)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
if err = hostConfig.ManageServices(args.RootDirectory); err != nil {
|
||||
if err = hostConfig.ManageServices(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user