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
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 17:46:26 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2015-09-16 17:46:26 +0300
commite01300ddb0f8a910ac34329a6dabe83b3cbdc69d (patch)
tree3cd5b07fa208a49f85bb866036f3a1e6451dcbf6 /lib
parent7348d34cfdb50c1cc3efa2debb093e8019752ac2 (diff)
Fix update_runner_info helper
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/api/helpers.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb
index 9197f917d73..e602cda81d6 100644
--- a/lib/ci/api/helpers.rb
+++ b/lib/ci/api/helpers.rb
@@ -1,6 +1,8 @@
module Ci
module API
module Helpers
+ UPDATE_RUNNER_EVERY = 60
+
def authenticate_runners!
forbidden! unless params[:token] == GitlabCi::REGISTRATION_TOKEN
end