Class: Indocker::RegistryAvaliabilityChecker
- Inherits:
-
Object
- Object
- Indocker::RegistryAvaliabilityChecker
- Includes:
- SmartIoC::Iocify
- Defined in:
- lib/indocker/utils/registry_authenticator.rb
Instance Method Summary collapse
Instance Method Details
#authenticate! ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/indocker/utils/registry_authenticator.rb', line 9 def authenticate! docker_api.authenticate!( serveraddress: config.docker.registry, username: config.docker.username, email: config.docker.email, password: config.docker.password ) rescue Docker::Error::AuthenticationError raise Indocker::Errors::DockerRegistryAuthenticationError end |