Commit 766d217e authored by Chris Bednarski's avatar Chris Bednarski

Pull config into the builder

parent 64fd3a33
...@@ -33,8 +33,14 @@ type Builder struct { ...@@ -33,8 +33,14 @@ type Builder struct {
// //
// Prepare should return a list of warnings along with any errors // Prepare should return a list of warnings along with any errors
// that occured while preparing. // that occured while preparing.
func (b *Builder) Prepare(...interface{}) ([]string, error) { func (b *Builder) Prepare(raws ...interface{}) ([]string, error) {
return nil, nil c, warnings, errs := NewConfig(raws...)
if errs != nil {
return warnings, errs
}
b.config = c
return warnings, nil
} }
// Run is where the actual build should take place. It takes a Build and a Ui. // Run is where the actual build should take place. It takes a Build and a Ui.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment