BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
7ec3c2dc
Commit
7ec3c2dc
authored
Apr 10, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add method that returns location of registry image
parent
046f4086
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
tag.rb
lib/container_registry/tag.rb
+4
-0
tag_spec.rb
spec/lib/container_registry/tag_spec.rb
+7
-0
No files found.
lib/container_registry/tag.rb
View file @
7ec3c2dc
...
...
@@ -29,6 +29,10 @@ module ContainerRegistry
"
#{
repository
.
path
}
:
#{
name
}
"
end
def
location
"
#{
repository
.
location
}
:
#{
name
}
"
end
def
[]
(
key
)
return
unless
manifest
...
...
spec/lib/container_registry/tag_spec.rb
View file @
7ec3c2dc
...
...
@@ -50,6 +50,13 @@ describe ContainerRegistry::Tag do
end
end
describe
'#location'
do
it
'returns a full location of the tag'
do
expect
(
tag
.
location
)
.
to
eq
'registry.gitlab/group/test:tag'
end
end
context
'manifest processing'
do
context
'schema v1'
do
before
do
...
...
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