Skip to content

Commit

Permalink
No longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Sep 16, 2023
1 parent 85ce65a commit 3df8752
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions lib/kamal/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3df8752

Please sign in to comment.