add constructor for Builder

this makes it easier to track required dependencies as they change

(todo: actually, like, use it for required dependencies)
This commit is contained in:
Alex Suraci
2014-02-24 15:41:14 -08:00
parent 0e98f294a3
commit fc01782554
3 changed files with 9 additions and 5 deletions

View File

@@ -174,7 +174,7 @@ func run(path string) {
// loop through and create builders
for _, b := range builds { //script.Builds {
builder := build.Builder{}
builder := build.New()
builder.Build = b
builder.Repo = &code
builder.Key = key
@@ -186,7 +186,7 @@ func run(path string) {
builder.Stdout = &buf
}
builders = append(builders, &builder)
builders = append(builders, builder)
}
switch *parallel {