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
path: root/lib/tasks
diff options
context:
space:
mode:
authorMarin Jankovski <marin@gitlab.com>2014-06-10 12:23:23 +0400
committerMarin Jankovski <marin@gitlab.com>2014-06-10 13:16:47 +0400
commitdca6c490ccb8eb1e9bc73e214acf2ac6654f11ea (patch)
tree632c07704b419b2fea2d217ea926598cefd84d68 /lib/tasks
parent6384344f156ccec0de746be68b168a745bdf73ae (diff)
Update check task and add to monthly release doc lines about gitlab_shell_version file.
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/check.rake18
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 362693b0603..00af8d10291 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -606,6 +606,22 @@ namespace :gitlab do
Gitlab::Shell.new.version
end
+ def required_gitlab_shell_version
+ File.read(File.join(Rails.root, "GITLAB_SHELL_VERSION")).strip
+ end
+
+ def gitlab_shell_major_version
+ required_gitlab_shell_version.split(".")[0].to_i
+ end
+
+ def gitlab_shell_minor_version
+ required_gitlab_shell_version.split(".")[1].to_i
+ end
+
+ def gitlab_shell_patch_version
+ required_gitlab_shell_version.split(".")[2].to_i
+ end
+
def has_gitlab_shell3?
gitlab_shell_version.try(:start_with?, "v3.")
end
@@ -779,7 +795,7 @@ namespace :gitlab do
end
def check_gitlab_shell
- required_version = Gitlab::VersionInfo.new(1, 9, 5)
+ required_version = Gitlab::VersionInfo.new(gitlab_shell_major_version, gitlab_shell_minor_version, gitlab_shell_patch_version)
current_version = Gitlab::VersionInfo.parse(gitlab_shell_version)
print "GitLab Shell version >= #{required_version} ? ... "