summaryrefslogtreecommitdiff
path: root/app/graphql/types/ci/runner_setup_type.rb
blob: b6b020db40e2e0fa5815f70659b71d8730389aa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Types
  module Ci
    # rubocop: disable Graphql/AuthorizeTypes
    class RunnerSetupType < BaseObject
      graphql_name 'RunnerSetup'

      field :install_instructions, GraphQL::Types::String, null: false,
        description: 'Instructions for installing the runner on the specified architecture.'
      field :register_instructions, GraphQL::Types::String, null: true,
        description: 'Instructions for registering the runner. The actual registration tokens are not included in the commands. Instead, a placeholder `$REGISTRATION_TOKEN` is shown.'
    end
  end
end