(tasks map[string]fi.CloudupTask)
| 266 | } |
| 267 | |
| 268 | func (b *BootstrapScript) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask { |
| 269 | var deps []fi.CloudupTask |
| 270 | |
| 271 | for _, task := range tasks { |
| 272 | if hasAddress, ok := task.(fi.HasAddress); ok && len(hasAddress.GetWellKnownServices()) > 0 { |
| 273 | deps = append(deps, task) |
| 274 | b.hasAddressTasks = append(b.hasAddressTasks, hasAddress) |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | for _, task := range b.caTasks { |
| 279 | deps = append(deps, task) |
| 280 | } |
| 281 | |
| 282 | return deps |
| 283 | } |
| 284 | |
| 285 | func (b *BootstrapScript) Run(c *fi.CloudupContext) error { |
| 286 | if b.Lifecycle == fi.LifecycleIgnore { |
nothing calls this directly
no test coverage detected