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

deploy_key.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2c9c33549a1f13b24f47306116b54aeeecc807c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

module API
  module Entities
    class DeployKey < Entities::SSHKey
      expose :key
      expose :fingerprint, if: ->(key, _) { key.fingerprint.present? }
      expose :fingerprint_sha256

      expose :projects_with_write_access, using: Entities::ProjectIdentity, if: -> (_, options) { options[:include_projects_with_write_access] }
    end
  end
end