jobrun: rename to jobmetadata

This commit is contained in:
Christian Schwarz
2017-09-01 14:10:12 +02:00
parent 6ab05ee1fa
commit 3070d156a3
3 changed files with 19 additions and 19 deletions
+3 -3
View File
@@ -92,10 +92,10 @@ func cmdRun(cmd *cobra.Command, args []string) {
runner.Start()
}()
jobs := make([]jobrun.Job, len(conf.Pulls)+len(conf.Pushs))
jobs := make([]jobrun.JobMetadata, len(conf.Pulls)+len(conf.Pushs))
i := 0
for _, pull := range conf.Pulls {
jobs[i] = jobrun.Job{
jobs[i] = jobrun.JobMetadata{
Name: fmt.Sprintf("pull.%d", i),
RepeatStrategy: pull.RepeatStrategy,
RunFunc: func(log jobrun.Logger) error {
@@ -106,7 +106,7 @@ func cmdRun(cmd *cobra.Command, args []string) {
i++
}
for _, push := range conf.Pushs {
jobs[i] = jobrun.Job{
jobs[i] = jobrun.JobMetadata{
Name: fmt.Sprintf("push.%d", i),
RepeatStrategy: push.RepeatStrategy,
RunFunc: func(log jobrun.Logger) error {