-module VersionHelper
- include ArvadosApiClientHelper
-
- # api_version returns the git commit hash for the API server's current version.
- # It is extracted from api_version_text, which returns the source_version provided
- # by the discovery document and may have the word "-modified" appended to it (if
- # the API server is running from a locally modified repository).
-
- def api_version()
- api_version_text().sub(/[^[:xdigit:]].*/, '')
- end