PrepOnly runs all prep functions and exits
(initial bool)
| 97 | |
| 98 | // PrepOnly runs all prep functions and exits |
| 99 | func (mr *ModRunner) PrepOnly(initial bool) error { |
| 100 | for _, b := range mr.Config.Blocks { |
| 101 | err := RunPreps(b, mr.Config.GetVariables(), nil, mr.Log, mr.Notifiers, initial) |
| 102 | if err != nil { |
| 103 | return err |
| 104 | } |
| 105 | } |
| 106 | return nil |
| 107 | } |
| 108 | |
| 109 | func (mr *ModRunner) runBlock(b conf.Block, mod *moddwatch.Mod, dpen *DaemonPen) { |
| 110 | if b.InDir != "" { |
no test coverage detected