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
exit_on_failure?, #initialize
Instance Method Details
#login ⇒ Object
3
4
5
6
7
8
9
|
# File 'lib/kamal/cli/registry.rb', line 3
def login
run_locally { execute *KAMAL.registry.login }
on(KAMAL.hosts) { execute *KAMAL.registry.login }
rescue ArgumentError => e
puts e.message
end
|
#logout ⇒ Object
12
13
14
15
16
17
|
# File 'lib/kamal/cli/registry.rb', line 12
def logout
on(KAMAL.hosts) { execute *KAMAL.registry.logout }
rescue ArgumentError => e
puts e.message
end
|