Method: DockerDistribution::Reference.trim_named
- Defined in:
- lib/docker_distribution/reference.rb
.trim_named(ref) ⇒ Object
TrimNamed removes any tag or digest from the named reference.
140 141 142 143 |
# File 'lib/docker_distribution/reference.rb', line 140 def self.trim_named(ref) domain, path = split_hostname(ref) new Repository(domain, path) end |