2018-11-05 23:45:35 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-05-16 16:29:56 -04:00
|
|
|
module Gitlab
|
|
|
|
module DependencyLinker
|
|
|
|
class CartfileLinker < MethodLinker
|
|
|
|
self.file_type = :cartfile
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def link_dependencies
|
2017-05-25 09:43:47 -04:00
|
|
|
link_method_call('github', REPO_REGEX, &method(:github_url))
|
|
|
|
link_method_call(%w[github git binary], URL_REGEX, &:itself)
|
2017-05-16 16:29:56 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|