gitlab-org--gitlab-foss/config/initializers/5_backend.rb
Rémy Coutable f575fe46a7 Move Gitlab::Shell and Gitlab::ShellAdapter files to lib/
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-27 16:16:55 +01:00

6 lines
375 B
Ruby

required_version = Gitlab::VersionInfo.parse(Gitlab::Shell.version_required)
current_version = Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)
unless current_version.valid? && required_version <= current_version
warn "WARNING: This version of GitLab depends on gitlab-shell #{required_version}, but you're running #{current_version}. Please update gitlab-shell."
end