Class: Dapp::DockerRegistry::Default
- Defined in:
- lib/dapp/docker_registry/default.rb
Overview
Default
Constant Summary collapse
- DEFAULT_HOSTNAME_URL =
'https://registry.hub.docker.com'.freeze
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
#hostname_url, #repo, #repo_suffix
Instance Method Summary collapse
-
#initialize(repo, repo_suffix) ⇒ Default
constructor
A new instance of Default.
- #repo_suffix=(val) ⇒ Object
Methods inherited from Base
#image_delete, #image_history, #image_id, #image_labels, #image_parent_id, #repo_exist?, #tags
Methods included from Mod::Authorization
#authorization_auth, #authorization_options, #authorization_token, #auths_section_from_docker_config, #parse_authenticate_header
Methods included from Mod::Request
#raw_request, #request, #url_available?
Constructor Details
#initialize(repo, repo_suffix) ⇒ Default
Returns a new instance of Default.
8 9 10 |
# File 'lib/dapp/docker_registry/default.rb', line 8 def initialize(repo, repo_suffix) super(repo, DEFAULT_HOSTNAME_URL, repo_suffix) end |
Instance Method Details
#repo_suffix=(val) ⇒ Object
12 13 14 15 |
# File 'lib/dapp/docker_registry/default.rb', line 12 def repo_suffix=(val) val = "library/#{val}" if val.split('/').one? super(val) end |