From 3df87520db6d3fa98417281276904999e08bbfea Mon Sep 17 00:00:00 2001 From: dhh Date: Sat, 16 Sep 2023 11:12:52 -0700 Subject: [PATCH] No longer used --- lib/kamal/utils.rb | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/kamal/utils.rb b/lib/kamal/utils.rb index 6115531d1..3f70d2c9e 100644 --- a/lib/kamal/utils.rb +++ b/lib/kamal/utils.rb @@ -16,26 +16,6 @@ def argumentize(argument, attributes, sensitive: false) end end - def env_file_with_secrets(env) - env_file = StringIO.new.tap do |contents| - if (secrets = env["secret"]).present? - env.fetch("secret", env)&.each do |key| - contents << docker_env_file_line(key, ENV.fetch(key)) - end - env["clear"]&.each do |key, value| - contents << docker_env_file_line(key, value) - end - else - env.fetch("clear", env)&.each do |key, value| - contents << docker_env_file_line(key, value) - end - end - end.string - - # Ensure the file has some contents to avoid the SSHKIT empty file warning - env_file.presence || "\n" - end - # Returns a list of shell-dashed option arguments. If the value is true, it's treated like a value-less option. def optionize(args, with: nil) options = if with