Class: Kamal::Cli::Registry

Inherits:
Base
  • Object
show all
Defined in:
lib/kamal/cli/registry.rb

Instance Method Summary collapse

Methods inherited from Base

dynamic_command_class, exit_on_failure?, #initialize

Constructor Details

This class inherits a constructor from Kamal::Cli::Base

Instance Method Details

#loginObject



5
6
7
8
# File 'lib/kamal/cli/registry.rb', line 5

def 
  run_locally    { execute *KAMAL.registry. } unless options[:skip_local]
  on(KAMAL.hosts) { execute *KAMAL.registry. } unless options[:skip_remote]
end

#logoutObject



13
14
15
16
# File 'lib/kamal/cli/registry.rb', line 13

def logout
  run_locally    { execute *KAMAL.registry.logout } unless options[:skip_local]
  on(KAMAL.hosts) { execute *KAMAL.registry.logout } unless options[:skip_remote]
end