Add version package

This PR adds a version package and consolidates version strings into a
Version struct.
This commit is contained in:
Alex Dadgar
2017-08-16 15:42:15 -07:00
parent b90980bd7d
commit c26ecb7092
18 changed files with 120 additions and 101 deletions

View File

@@ -290,7 +290,7 @@ func (d *JavaDriver) Start(ctx *ExecContext, task *structs.Task) (*StartResponse
taskDir: ctx.TaskDir.Dir,
killTimeout: GetKillTimeout(task.KillTimeout, maxKill),
maxKillTimeout: maxKill,
version: d.config.Version,
version: d.config.Version.VersionNumber(),
logger: d.logger,
doneCh: make(chan struct{}),
waitCh: make(chan *dstructs.WaitResult, 1),