In Gitlab Omnibus installation, inside the /etc/gitlab/gitlab.rb configuration script, how can I detect the current version of Gitlab? (I need to enable/disable some features depending on version of Gitlab.)
edit: Please note I need this check to work specifically from inside gitlab.rb script! The answers described in How to check the version of Gitlab? are not clearly appropriate for this question out of the box. At least not without some highly non-obvious to me adaptation. If you can demonstrate how any of those applies, please show it explicitly, I can't see such a way myself.
versionin gitlab.rb file. You might need to come out ofgitlab.rbfile and do as this suggestsgitlab.rbis Ruby code, and is loaded by a Ruby script, so it's very much possible, that the loader, being part of Gitlab application, somehow exposes current Gitlab version togitlab.rbcode. That would be the perfect solution. Alternatively, maybe some (but not all) answers from "the other question" could be nontrivially adapted as Ruby code that could be used ingitlab.rb.