Class: VersionCheck
- Inherits:
-
Object
- Object
- VersionCheck
- Defined in:
- lib/version_check.rb
Overview
This class is used to build image URL to check if it is a new version for update
Class Method Summary collapse
Class Method Details
.data ⇒ Object
8 9 10 |
# File 'lib/version_check.rb', line 8 def self.data { version: Gitlab::VERSION } end |
.host ⇒ Object
18 19 20 |
# File 'lib/version_check.rb', line 18 def self.host 'https://version.gitlab.com/check.svg' end |
.url ⇒ Object
12 13 14 15 16 |
# File 'lib/version_check.rb', line 12 def self.url encoded_data = Base64.urlsafe_encode64(data.to_json) "#{host}?gitlab_info=#{encoded_data}" end |