Extract Kamal::EnvFile

Cleaning up the Utils junk drawer.
This commit is contained in:
dhh
2023-09-16 10:55:41 -07:00
parent 3a8eb0cf7d
commit 873be0b76b
7 changed files with 149 additions and 106 deletions

View File

@@ -1,5 +1,5 @@
class Kamal::Commands::Traefik < Kamal::Commands::Base
delegate :argumentize, :env_file_with_secrets, :optionize, to: Kamal::Utils
delegate :argumentize, :optionize, to: Kamal::Utils
DEFAULT_IMAGE = "traefik:v2.9"
CONTAINER_PORT = 80
@@ -64,7 +64,7 @@ class Kamal::Commands::Traefik < Kamal::Commands::Base
end
def env_file
env_file_with_secrets config.traefik.fetch("env", {})
Kamal::EnvFile.new(config.traefik.fetch("env", {}))
end
def host_env_file_path