summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-02-02 21:56:22 +0100
committerMatija Čupić <matteeyah@gmail.com>2018-02-02 21:56:22 +0100
commit40753029e40b9c2824648a966048595d36efc793 (patch)
tree62d97ed6a45a0d2cecc76faf2fea87e63212dde8 /lib/api
parentcc209519c892355f019335bbe0107af2f434846b (diff)
parenta00aed74af67dd72a2aa7bf7e485ff7bdb949ea4 (diff)
downloadgitlab-ce-40753029e40b9c2824648a966048595d36efc793.tar.gz
Merge branch 'master' into 38175-add-domain-field-to-auto-devops-application-setting
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/helpers/runner.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/api/helpers/runner.rb b/lib/api/helpers/runner.rb
index 2cae53dba53..3d0d1287407 100644
--- a/lib/api/helpers/runner.rb
+++ b/lib/api/helpers/runner.rb
@@ -1,15 +1,13 @@
module API
module Helpers
module Runner
- include Gitlab::CurrentSettings
-
JOB_TOKEN_HEADER = 'HTTP_JOB_TOKEN'.freeze
JOB_TOKEN_PARAM = :token
UPDATE_RUNNER_EVERY = 10 * 60
def runner_registration_token_valid?
ActiveSupport::SecurityUtils.variable_size_secure_compare(params[:token],
- current_application_settings.runners_registration_token)
+ Gitlab::CurrentSettings.runners_registration_token)
end
def get_runner_version_from_params
@@ -70,7 +68,7 @@ module API
end
def max_artifacts_size
- current_application_settings.max_artifacts_size.megabytes.to_i
+ Gitlab::CurrentSettings.max_artifacts_size.megabytes.to_i
end
end
end