From b3c823c0d409371dfa2de59858efa56758b112fa Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 14 Apr 2020 10:13:45 +0200 Subject: [PATCH] Maintenance task to display the current version --- CHANGELOG.md | 1 + doc/README.md | 2 +- lib/tasks/fablab/maintenance.rake | 6 ++++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6229981aa..1db6869d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Changed In-Context pseudo-language to Zulu instead of Acholi - Allow removing contacts from the about page - Maintenance task to migrate notifications for Fab-manager v1 +- Maintenance task to display the current version - Fix a bug: installation without nginx does not remove the service from the docker-compose file - Fix a bug: default twitter feed is invalid - Fix a bug: default nginx configuration does not allows secure cookies diff --git a/doc/README.md b/doc/README.md index e9c6b11b4..7384b04e7 100644 --- a/doc/README.md +++ b/doc/README.md @@ -37,7 +37,7 @@ The following guides should help those who want to contribute to the code. #### Externals - [ElasticSearch mapping](elasticsearch.md) -- [Changing the database system](postgresql_readme.md) +- [Changing the database system](postgresql_readme.md#using-another-dbms) #### Diagrams - [Database diagram](database.svg) diff --git a/lib/tasks/fablab/maintenance.rake b/lib/tasks/fablab/maintenance.rake index b749fc0b0..86caa8a4f 100644 --- a/lib/tasks/fablab/maintenance.rake +++ b/lib/tasks/fablab/maintenance.rake @@ -76,5 +76,11 @@ namespace :fablab do n.save! end end + + desc 'get the version' + task version: :environment do + require 'version' + puts Version.current + end end end