Commit e94001ba authored by Gabriel Mazetto's avatar Gabriel Mazetto

Use a more reliable way to detect current Ruby version

parent 62e0877d
---
title: 'SystemCheck: Use a more reliable way to detect current Ruby version'
merge_request: 23291
author:
type: changed
...@@ -11,7 +11,7 @@ module SystemCheck ...@@ -11,7 +11,7 @@ module SystemCheck
end end
def self.current_version def self.current_version
@current_version ||= Gitlab::VersionInfo.parse(Gitlab::TaskHelpers.run_command(%w(ruby --version))) @current_version ||= Gitlab::VersionInfo.parse(RUBY_VERSION)
end end
def check? 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