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:
Diffstat (limited to 'lib/ci/api/helpers.rb')
-rw-r--r--lib/ci/api/helpers.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb
index 996990b464f..868a9cdec70 100644
--- a/lib/ci/api/helpers.rb
+++ b/lib/ci/api/helpers.rb
@@ -79,6 +79,14 @@ module Ci
def max_artifacts_size
current_application_settings.max_artifacts_size.megabytes.to_i
end
+
+ def get_runner_version
+ params.fetch('info', {}).fetch('version', "unknown")
+ end
+
+ def header_last_update(value)
+ header 'X-GitLab-Last-Update', value
+ end
end
end
end