Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2018-11-21 23:46:27 +0300
committerGabriel Mazetto <brodock@gmail.com>2018-11-21 23:46:27 +0300
commite94001ba89d4c59e981254b1434789f707071990 (patch)
tree6374bbcad99ea66798a7715866e2d5730f2dc885 /lib/system_check/app
parent62e0877d5a2290403975667eb679dc94a2340655 (diff)
Use a more reliable way to detect current Ruby version
Diffstat (limited to 'lib/system_check/app')
-rw-r--r--lib/system_check/app/ruby_version_check.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system_check/app/ruby_version_check.rb b/lib/system_check/app/ruby_version_check.rb
index d73c39f2c3f..60e07718338 100644
--- a/lib/system_check/app/ruby_version_check.rb
+++ b/lib/system_check/app/ruby_version_check.rb
@@ -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?