gitlab-org--gitlab-foss/lib/gitlab/dependency_linker/podfile_linker.rb

27 lines
510 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-05-16 16:28:52 -04:00
module Gitlab
module DependencyLinker
class PodfileLinker < GemfileLinker
include Cocoapods
self.package_keyword = :pod
2017-05-16 16:28:52 -04:00
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
2017-05-16 16:28:52 -04:00
end
end
end
end