Class: Kamal::Commands::Registry

Inherits:
Base
  • Object
show all
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

#config

Instance Method Summary collapse

Methods inherited from Base

#container_id_for, #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

#loginObject



4
5
6
7
8
9
# File 'lib/kamal/commands/registry.rb', line 4

def 
  docker :login,
    registry.server,
    "-u", sensitive(Kamal::Utils.escape_shell_value(registry.username)),
    "-p", sensitive(Kamal::Utils.escape_shell_value(registry.password))
end

#logoutObject



11
12
13
# File 'lib/kamal/commands/registry.rb', line 11

def logout
  docker :logout, registry.server
end