summaryrefslogtreecommitdiff
path: root/app/models/ci/runner.rb
diff options
context:
space:
mode:
authorAlexis Reigel <alexis.reigel.ext@siemens.com>2018-06-07 17:43:23 +0200
committerAlexis Reigel <alexis.reigel.ext@siemens.com>2018-08-20 17:12:18 +0200
commitbbc305b1a24785d780fe0672d9e49f2c53af463b (patch)
tree831aa700c239fc05f7b3f9b9f135d05922ab51af /app/models/ci/runner.rb
parentf0d0400d0be6948f769c8733386ed765a04d23b2 (diff)
downloadgitlab-ce-bbc305b1a24785d780fe0672d9e49f2c53af463b.tar.gz
dry up available scopes to constants
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r--app/models/ci/runner.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index c0f632c2c9a..a041ea1a1c8 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -11,7 +11,9 @@ module Ci
RUNNER_QUEUE_EXPIRY_TIME = 60.minutes
ONLINE_CONTACT_TIMEOUT = 1.hour
UPDATE_DB_RUNNER_INFO_EVERY = 40.minutes
- AVAILABLE_SCOPES = %w[specific shared active paused online].freeze
+ AVAILABLE_TYPES = %w[specific shared].freeze
+ AVAILABLE_STATUSES = %w[active paused online offline].freeze
+ AVAILABLE_SCOPES = (AVAILABLE_TYPES + AVAILABLE_STATUSES).freeze
FORM_EDITABLE = %i[description tag_list active run_untagged locked access_level maximum_timeout_human_readable].freeze
ignore_column :is_shared