gitlab-org--gitlab-foss/lib/gitlab/dependency_linker/cartfile_linker.rb
2017-05-23 15:35:51 -05:00

20 lines
410 B
Ruby

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