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

21 lines
410 B
Ruby
Raw Normal View History

2017-05-16 16:29:56 -04:00
module Gitlab
module DependencyLinker
class CartfileLinker < MethodLinker
self.file_type = :cartfile
private
def link_dependencies
link_method_call(%w[github git binary]) do |value|
case value
when %r{\A#{REPO_REGEX}\z}
github_url(value)
when /\A#{URL_REGEX}\z/
value
end
end
end
end
end
end