// RemoveDeps returns the dependencies for the remove action func RemoveDeps(conf config.Resource) func() []string { return func() []string { confDeps := conf.Dependencies() deps := []string{} for i := len(confDeps); i > 0; i-- { taskname := task.ParseName(confDeps[i-1]) deps = append(deps, taskname.Resource()+":"+"rm") } return deps } }
func deps(conf config.Resource, deps []string) func() []string { return func() []string { return append(deps, conf.Dependencies()...) } }
// RunDeps returns the dependencies for the run action func RunDeps(conf config.Resource) func() []string { return func() []string { return conf.Dependencies() } }