Class: Dapp::Dimg::DockerRegistry::Default
- Defined in:
- lib/dapp/dimg/docker_registry/default.rb
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 Dimg
#dimg_tags, #dimgstages_tags, #image_delete, #image_history, #image_id, #image_labels, #image_parent_id, #nameless_dimg_tags, #tags
Methods inherited from Base
#image_delete, #image_history, #image_id, #image_labels, #image_parent_id, #tags
Methods included from Base::Authorization
#authorization_auth, #authorization_options, #authorization_token, #auths_section_from_docker_config, #handle_scope_option, #parse_authenticate_header
Methods included from Base::Request
included, #raw_request, #request, #url_available?
Constructor Details
#initialize(repo, repo_suffix) ⇒ Default
Returns a new instance of Default.
7 8 9 |
# File 'lib/dapp/dimg/docker_registry/default.rb', line 7 def initialize(repo, repo_suffix) super(repo, DEFAULT_HOSTNAME_URL, repo_suffix) end |
Instance Method Details
#repo_suffix=(val) ⇒ Object
11 12 13 14 |
# File 'lib/dapp/dimg/docker_registry/default.rb', line 11 def repo_suffix=(val) val = "library/#{val}" if val.split('/').one? super(val) end |