2018-11-05 23:45:35 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-16 16:28:52 -04:00
|
|
|
module Gitlab
|
|
|
|
module DependencyLinker
|
|
|
|
class PodfileLinker < GemfileLinker
|
|
|
|
include Cocoapods
|
|
|
|
|
2019-02-15 14:11:16 -05:00
|
|
|
self.package_keyword = :pod
|
2017-05-16 16:28:52 -04:00
|
|
|
self.file_type = :podfile
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def link_packages
|
2019-02-15 14:11:16 -05:00
|
|
|
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
|
2017-05-16 16:28:52 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|