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
|