Merge pull request #1009 from basecamp/secrets-print

Add `kamal secrets print` for secret debugging
This commit is contained in:
Donal McBreen
2024-09-30 09:55:53 -04:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@@ -21,6 +21,13 @@ class Kamal::Cli::Secrets < Kamal::Cli::Base
return_or_puts value, inline: options[:inline]
end
desc "print", "Print the secrets (for debugging)"
def print
KAMAL.config.secrets.to_h.each do |key, value|
puts "#{key}=#{value}"
end
end
private
def adapter(adapter)
Kamal::Secrets::Adapters.lookup(adapter)