Use delegation for shorter access

This commit is contained in:
David Heinemeier Hansson
2023-01-15 13:50:38 +01:00
parent 8fac321973
commit 89161b66a1
3 changed files with 9 additions and 3 deletions

View File

@@ -4,7 +4,7 @@ class Mrsk::Commands::Registry < Mrsk::Commands::Base
delegate :registry, to: :config
def login
docker :login, registry["server"], "-u", Mrsk::Utils.redact(registry["username"]), "-p", Mrsk::Utils.redact(registry["password"])
docker :login, registry["server"], "-u", redact(registry["username"]), "-p", redact(registry["password"])
end
def logout