Extract Kamal::Git as gateway for all git usage

This commit is contained in:
dhh
2023-09-16 11:30:29 -07:00
parent 12a82a6c58
commit cfbfb37e23
8 changed files with 38 additions and 22 deletions

View File

@@ -86,10 +86,6 @@ module Kamal::Utils
value.to_s.dump[1..-2].gsub(/\\"/, "\"")
end
def uncommitted_changes
`git status --porcelain`.strip
end
def docker_env_file_line(key, value)
"#{key.to_s}=#{escape_docker_env_file_value(value)}\n"
end