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::Configuration::Accessory
delegate :argumentize, :env_file_with_secrets, :optionize, to: Kamal::Utils
delegate :argumentize, :optionize, to: Kamal::Utils
attr_accessor :name, :specifics
@@ -46,7 +46,7 @@ class Kamal::Configuration::Accessory
end
def env_file
env_file_with_secrets env
Kamal::EnvFile.new(env)
end
def host_env_directory

View File

@@ -1,6 +1,6 @@
class Kamal::Configuration::Role
CORD_FILE = "cord"
delegate :argumentize, :env_file_with_secrets, :optionize, to: Kamal::Utils
delegate :argumentize, :optionize, to: Kamal::Utils
attr_accessor :name
@@ -46,7 +46,7 @@ class Kamal::Configuration::Role
end
def env_file
env_file_with_secrets env
Kamal::EnvFile.new(env)
end
def host_env_directory