gitlab-org--gitlab-foss/app/serializers/import/fogbugz_provider_repo_entity.rb

17 lines
406 B
Ruby

# frozen_string_literal: true
class Import::FogbugzProviderRepoEntity < Import::BaseProviderRepoEntity
include ImportHelper
expose :full_name, override: true do |repo|
repo.name
end
expose :sanitized_name, override: true do |repo|
repo.safe_name
end
expose :provider_link, override: true do |repo, options|
provider_project_link_url(options[:provider_url], repo.path)
end
end