diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-02-28 16:27:25 +0300 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2017-03-02 19:45:46 +0300 |
commit | 2a7f555caf8588ad78f054f29e740a2a4a30deb3 (patch) | |
tree | b929b08b1adc7fdb9f8666a2f980495a8a32a293 /lib/api/helpers | |
parent | 7e46db0f5a5b6aa84ac653fa4826b70bf50d6909 (diff) |
Add artifacts uploading authorize API
Diffstat (limited to 'lib/api/helpers')
-rw-r--r-- | lib/api/helpers/runner.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/helpers/runner.rb b/lib/api/helpers/runner.rb index e71895c091e..97255cc8c81 100644 --- a/lib/api/helpers/runner.rb +++ b/lib/api/helpers/runner.rb @@ -68,6 +68,10 @@ module API token = (params[JOB_TOKEN_PARAM] || env[JOB_TOKEN_HEADER]).to_s token && job.valid_token?(token) end + + def max_artifacts_size + current_application_settings.max_artifacts_size.megabytes.to_i + end end end end |