MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_urls

Function get_urls

src/packagedcode/chef.py:58–69  ·  view source on GitHub ↗

Return a mapping of URLs given a name and version.

(name, version, **kwargs)

Source from the content-addressed store, hash-verified

56
57
58def get_urls(name, version, **kwargs):
59 """
60 Return a mapping of URLs given a name and version.
61 """
62 dnl = chef_download_url(name, version)
63 rhu = name and version and f'https://supermarket.chef.io/cookbooks/{name}/versions/{version}/'
64 return dict(
65 download_url=dnl,
66 repository_download_url=dnl,
67 repository_homepage_url=rhu,
68 api_data_url=chef_api_url(name, version),
69 )
70
71
72class ChefMetadataFormatter(Formatter):

Callers 1

build_packageFunction · 0.70

Calls 2

chef_download_urlFunction · 0.85
chef_api_urlFunction · 0.85

Tested by

no test coverage detected