Class: Kamal::Commands::Registry
- Defined in:
- lib/kamal/commands/registry.rb
Constant Summary
Constants inherited from Base
Base::DOCKER_HEALTH_STATUS_FORMAT
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#container_id_for, #ensure_docker_installed, #initialize, #make_directory, #make_directory_for, #remove_directory, #remove_file, #run_over_ssh
Constructor Details
This class inherits a constructor from Kamal::Commands::Base
Instance Method Details
#login(registry_config: nil) ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/kamal/commands/registry.rb', line 2 def login(registry_config: nil) registry_config ||= config.registry docker :login, registry_config.server, "-u", sensitive(Kamal::Utils.escape_shell_value(registry_config.username)), "-p", sensitive(Kamal::Utils.escape_shell_value(registry_config.password)) end |
#logout(registry_config: nil) ⇒ Object
11 12 13 14 15 |
# File 'lib/kamal/commands/registry.rb', line 11 def logout(registry_config: nil) registry_config ||= config.registry docker :logout, registry_config.server end |