mirror of
https://github.com/gitlabhq/gitlabhq.git
synced 2025-07-29 12:48:15 +00:00
21 lines
435 B
Ruby
21 lines
435 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module DependencyLinker
|
|
class ComposerJsonLinker < PackageJsonLinker
|
|
self.file_type = :composer_json
|
|
|
|
private
|
|
|
|
def link_packages
|
|
link_packages_at_key("require")
|
|
link_packages_at_key("require-dev")
|
|
end
|
|
|
|
def package_url(name)
|
|
"https://packagist.org/packages/#{name}" if /\A#{REPO_REGEX}\z/o.match?(name)
|
|
end
|
|
end
|
|
end
|
|
end
|