Catch registry credentials errors nicer
This commit is contained in:
@@ -5,10 +5,14 @@ class Mrsk::Cli::Registry < Mrsk::Cli::Base
|
||||
def login
|
||||
run_locally { execute *MRSK.registry.login }
|
||||
on(MRSK.config.hosts) { execute *MRSK.registry.login }
|
||||
rescue ArgumentError => e
|
||||
puts e.message
|
||||
end
|
||||
|
||||
desc "logout", "Logout of the registry remotely"
|
||||
def logout
|
||||
on(MRSK.config.hosts) { execute *MRSK.registry.logout }
|
||||
rescue ArgumentError => e
|
||||
puts e.message
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user