Ugly but working inital snapjob implementation

This commit is contained in:
InsanePrawn
2018-11-20 19:30:15 +01:00
parent 7ab51fad0d
commit 3d2688e959
6 changed files with 455 additions and 0 deletions
+9
View File
@@ -45,6 +45,15 @@ func buildJob(c *config.Global, in config.JobEnum) (j Job, err error) {
if err != nil {
return cannotBuildJob(err, v.Name)
}
case *config.SnapJob:
m, err := modeSnapFromConfig(c, v)
if err != nil {
return cannotBuildJob(err, v.Name)
}
j, err = snap_activeSide(c, v, m)
if err != nil {
return cannotBuildJob(err, v.Name)
}
case *config.PushJob:
m, err := modePushFromConfig(c, v)
if err != nil {