Class: Kamal::Cli::Registry
- Inherits:
-
Base
- Object
- Thor
- Base
- Kamal::Cli::Registry
show all
- Defined in:
- lib/kamal/cli/registry.rb
Instance Method Summary
collapse
Methods inherited from Base
dynamic_command_class, exit_on_failure?, #initialize
Instance Method Details
#login ⇒ Object
5
6
7
8
|
# File 'lib/kamal/cli/registry.rb', line 5
def login
run_locally { execute *KAMAL.registry.login } unless options[:skip_local]
on(KAMAL.hosts) { execute *KAMAL.registry.login } unless options[:skip_remote]
end
|
#logout ⇒ Object
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
|