Skip to content

Commit

Permalink
Record push of env files for audit on app servers
Browse files Browse the repository at this point in the history
  • Loading branch information
dhh committed Sep 15, 2023
1 parent 39c13dc commit 81d74e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/kamal/cli/env.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class Kamal::Cli::Env < Kamal::Cli::Base
def push
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
Expand All @@ -31,6 +33,8 @@ def push
def delete
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
Expand Down

0 comments on commit 81d74e4

Please sign in to comment.