From f792ff6014082293a2fdfe099a8a39d8e53eefd9 Mon Sep 17 00:00:00 2001 From: Sebastian Sastre Date: Thu, 21 Dec 2023 22:24:18 -0300 Subject: [PATCH] adds the version from the env var --- Ride/RideService.class.st | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Ride/RideService.class.st b/Ride/RideService.class.st index ed8ac65..7c0a7ca 100644 --- a/Ride/RideService.class.st +++ b/Ride/RideService.class.st @@ -337,11 +337,14 @@ RideService >> setUp [ { #category : #actions } RideService >> start [ + self setUp. Ride log: ('{1} starting...' format: { self class name }). self maitre start. self server start. - Ride log: ('{1} started' format: { self class name }). + Ride log: ('{1} {2} started' format: { + self class name. + self version }) ] { #category : #actions } @@ -353,3 +356,9 @@ RideService >> stop [ Ride log: ('{1} stopped' format: { self class name }). self reset ] + +{ #category : #accessing } +RideService >> version [ + + ^ OSEnvironment current at: 'VERSION' ifAbsent: [ 'v?.?.?' ] +]