summaryrefslogtreecommitdiff
path: root/lib/gitlab.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-11-14 18:55:38 +0100
committerKamil Trzciński <ayufan@ayufan.eu>2018-11-19 14:09:39 +0100
commitc3bd3bfc6e1990f4774bcd678deef1eb202a2680 (patch)
tree89d59fa8513716b5b00a49a293752c9f7533e869 /lib/gitlab.rb
parent321506c7431788e23e12a196ee1b77c0af2ea5f6 (diff)
downloadgitlab-ce-c3bd3bfc6e1990f4774bcd678deef1eb202a2680.tar.gz
Improve variables supportimprove-variables-support
This ensures that variables accept only string, alongside also improves kubernetes_namespace, improving validation and default value being set.
Diffstat (limited to 'lib/gitlab.rb')
-rw-r--r--lib/gitlab.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab.rb b/lib/gitlab.rb
index 2bb09684441..2ef54658a11 100644
--- a/lib/gitlab.rb
+++ b/lib/gitlab.rb
@@ -53,4 +53,8 @@ module Gitlab
def self.pre_release?
VERSION.include?('pre')
end
+
+ def self.version_info
+ Gitlab::VersionInfo.parse(Gitlab::VERSION)
+ end
end