lib/kamal/cli/env.rb in kamal-1.3.1 vs lib/kamal/cli/env.rb in kamal-1.4.0

- old
+ new

@@ -6,13 +6,12 @@ mutating do on(KAMAL.hosts) do execute *KAMAL.auditor.record("Pushed env files"), verbosity: :debug KAMAL.roles_on(host).each do |role| - role_config = KAMAL.config.role(role) execute *KAMAL.app(role: role).make_env_directory - upload! StringIO.new(role_config.env_file), role_config.host_env_file_path, mode: 400 + upload! StringIO.new(role.env_file), role.host_env_file_path, mode: 400 end end on(KAMAL.traefik_hosts) do execute *KAMAL.traefik.make_env_directory @@ -34,10 +33,9 @@ mutating do on(KAMAL.hosts) do execute *KAMAL.auditor.record("Deleted env files"), verbosity: :debug KAMAL.roles_on(host).each do |role| - role_config = KAMAL.config.role(role) execute *KAMAL.app(role: role).remove_env_file end end on(KAMAL.traefik_hosts) do