Commit cd7f2d35 authored by Douwe Maan's avatar Douwe Maan

Merge branch '46950-systemcheck-use-gem-ruby-instead-of-hardcoding-ruby-version' into 'master'

SystemCheck: Use a more reliable way to detect current Ruby version

Closes #46950

See merge request gitlab-org/gitlab-ce!23291
parents 2bc4a17d e94001ba
---
title: 'SystemCheck: Use a more reliable way to detect current Ruby version'
merge_request: 23291
author:
type: changed
......@@ -11,7 +11,7 @@ module SystemCheck
end
def self.current_version
@current_version ||= Gitlab::VersionInfo.parse(Gitlab::TaskHelpers.run_command(%w(ruby --version)))
@current_version ||= Gitlab::VersionInfo.parse(RUBY_VERSION)
end
def check?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment