2018-07-19 18:43:13 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-05-03 12:55:14 +00:00
|
|
|
class ProjectMirrorEntity < Grape::Entity
|
2019-09-13 13:26:31 +00:00
|
|
|
prepend_if_ee('::EE::ProjectMirrorEntity') # rubocop: disable Cop/InjectEnterpriseEditionModule
|
|
|
|
|
2018-05-03 12:55:14 +00:00
|
|
|
expose :id
|
|
|
|
|
2018-11-12 10:52:48 +00:00
|
|
|
expose :remote_mirrors_attributes, using: RemoteMirrorEntity do |project|
|
|
|
|
project.remote_mirrors
|
2018-05-03 12:55:14 +00:00
|
|
|
end
|
|
|
|
end
|