Welcome to mirror list, hosted at ThFree Co, Russian Federation.

runner_machine.rb « ci « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 89b426a97fc2e3a91c24a600fc906aebaf20e9e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

module Ci
  class RunnerMachine < Ci::ApplicationRecord
    include Ci::HasRunnerExecutor

    belongs_to :runner

    validates :runner, presence: true
    validates :machine_xid, presence: true, length: { maximum: 64 }
    validates :version, length: { maximum: 2048 }
    validates :revision, length: { maximum: 255 }
    validates :platform, length: { maximum: 255 }
    validates :architecture, length: { maximum: 255 }
    validates :ip_address, length: { maximum: 1024 }
    validates :config, json_schema: { filename: 'ci_runner_config' }
  end
end