diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-10 13:07:36 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-10 13:07:36 +0200 |
commit | 7ec3c2dcee9da79dfa8d034377fe9462ff8e5b0b (patch) | |
tree | a24e46b1b3e545741d1388f80406236c51a08df5 /lib | |
parent | 046f4086e4e1ba7c4f47215d30c9c470bb0a67a4 (diff) | |
download | gitlab-ce-7ec3c2dcee9da79dfa8d034377fe9462ff8e5b0b.tar.gz |
Add method that returns location of registry image
Diffstat (limited to 'lib')
-rw-r--r-- | lib/container_registry/tag.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/container_registry/tag.rb b/lib/container_registry/tag.rb index d00e6191e7e..728deea224f 100644 --- a/lib/container_registry/tag.rb +++ b/lib/container_registry/tag.rb @@ -29,6 +29,10 @@ module ContainerRegistry "#{repository.path}:#{name}" end + def location + "#{repository.location}:#{name}" + end + def [](key) return unless manifest |