func usePlatformImage(app provision.App) bool { deploys := app.GetDeploys() if (deploys != 0 && deploys%10 == 0) || app.GetUpdatePlatform() { return true } return false }
func usePlatformImage(app provision.App) bool { maxLayers, _ := config.GetUint("docker:max-layers") if maxLayers == 0 { maxLayers = 10 } deploys := app.GetDeploys() return deploys%maxLayers == 0 || app.GetUpdatePlatform() }
func (p *dockerProvisioner) usePlatformImage(app provision.App) bool { deploys := app.GetDeploys() return deploys%10 == 0 || app.GetUpdatePlatform() }