Class: Mrsk::Commands::Registry

Inherits:
Base
  • Object
show all
Defined in:
lib/mrsk/commands/registry.rb

Constant Summary

Constants inherited from Base

Base::DOCKER_HEALTH_LOG_FORMAT, 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, #run_over_ssh

Constructor Details

This class inherits a constructor from Mrsk::Commands::Base

Instance Method Details

#loginObject



4
5
6
# File 'lib/mrsk/commands/registry.rb', line 4

def 
  docker :login, registry["server"], "-u", sensitive(lookup("username")), "-p", sensitive(lookup("password"))
end

#logoutObject



8
9
10
# File 'lib/mrsk/commands/registry.rb', line 8

def logout
  docker :logout, registry["server"]
end