示例#1
0
文件: actions.go 项目: dnephin/dobi
// 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
	}
}
示例#2
0
文件: actions.go 项目: dnephin/dobi
func deps(conf config.Resource, deps []string) func() []string {
	return func() []string {
		return append(deps, conf.Dependencies()...)
	}
}
示例#3
0
文件: actions.go 项目: dnephin/dobi
// RunDeps returns the dependencies for the run action
func RunDeps(conf config.Resource) func() []string {
	return func() []string {
		return conf.Dependencies()
	}
}