Extract Kamal::EnvFile
Cleaning up the Utils junk drawer.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user