Use a more reliable way to detect current Ruby version
This commit is contained in:
parent
62e0877d5a
commit
e94001ba89
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
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?
|
||||
|
|
Loading…
Reference in New Issue