mirror of
https://github.com/hanzoai/pack.git
synced 2026-09-30 23:43:13 +00:00
31 lines
600 B
Go
31 lines
600 B
Go
package generate
|
|
|
|
import "github.com/railwayapp/railpack/core/plan"
|
|
|
|
type DeployBuilder struct {
|
|
Inputs []plan.Input
|
|
StartCmd string
|
|
Variables map[string]string
|
|
Paths []string
|
|
AptPackages []string
|
|
}
|
|
|
|
func NewDeployBuilder() *DeployBuilder {
|
|
return &DeployBuilder{
|
|
Inputs: []plan.Input{},
|
|
StartCmd: "",
|
|
Variables: map[string]string{},
|
|
Paths: []string{},
|
|
AptPackages: []string{},
|
|
}
|
|
}
|
|
|
|
func (b *DeployBuilder) Build() plan.Deploy {
|
|
return plan.Deploy{
|
|
Inputs: b.Inputs,
|
|
StartCmd: b.StartCmd,
|
|
Variables: b.Variables,
|
|
Paths: b.Paths,
|
|
}
|
|
}
|