gitlab-org--gitlab-foss/lib/gitlab/dependency_linker/podfile_linker.rb
2019-02-21 16:17:38 -03:00

26 lines
510 B
Ruby

# frozen_string_literal: true
module Gitlab
module DependencyLinker
class PodfileLinker < GemfileLinker
include Cocoapods
self.package_keyword = :pod
self.file_type = :podfile
private
def link_packages
packages = parse_packages
return unless packages
packages.each do |package|
link_method_call('pod', package.name) do
external_url(package.name, package.external_ref)
end
end
end
end
end
end