Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
32c85a65
Commit
32c85a65
authored
Feb 05, 2020
by
Nick Kipling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changing to use expose_url
parent
84db89ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ee/app/helpers/ee/packages_helper.rb
ee/app/helpers/ee/packages_helper.rb
+4
-5
No files found.
ee/app/helpers/ee/packages_helper.rb
View file @
32c85a65
...
...
@@ -11,22 +11,21 @@ module EE
end
def
npm_package_registry_url
::
Gitlab
::
Utils
.
append_path
(
::
Gitlab
.
config
.
gitlab
.
url
,
expose_path
(
api_v4_packages_npm_package_name_path
)
)
expose_url
(
api_v4_packages_npm_package_name_path
)
end
def
conan_package_registry_url
::
Gitlab
::
Utils
.
append_path
(
::
Gitlab
.
config
.
gitlab
.
url
,
"api/
#{
::
API
::
API
.
version
}
/packages/conan"
)
expose_url
(
"api/
#{
::
API
::
API
.
version
}
/packages/conan"
)
end
def
nuget_package_registry_url
(
project_id
)
project_registry_path
=
expose_path
(
api_v4_projects_packages_nuget_index_path
(
id:
project_id
,
format:
'.json'
))
::
Gitlab
::
Utils
.
append_path
(
::
Gitlab
.
config
.
gitlab
.
url
,
project_registry_path
)
expose_url
(
api_v4_projects_packages_nuget_index_path
(
id:
project_id
,
format:
'.json'
))
end
def
package_registry_project_url
(
project_id
,
registry_type
=
:maven
)
project_api_path
=
expose_path
(
api_v4_projects_path
(
id:
project_id
))
package_registry_project_path
=
"
#{
project_api_path
}
/packages/
#{
registry_type
}
"
::
Gitlab
::
Utils
.
append_path
(
::
Gitlab
.
config
.
gitlab
.
url
,
package_registry_project_path
)
expose_url
(
package_registry_project_path
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment