Skip to content

Commit

Permalink
Reuse CONTAINER_NAME constant
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-alexandrov committed Oct 9, 2024
1 parent 7b48648 commit 9d08d00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kamal/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def proxy_image
end

def proxy_container_name
"kamal-proxy"
proxy.container_name
end

def proxy_directory
Expand Down
4 changes: 4 additions & 0 deletions lib/kamal/configuration/proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ def merge(other)
self.class.new config: config, proxy_config: proxy_config.deep_merge(other.proxy_config)
end

def container_name
CONTAINER_NAME
end

private
def seconds_duration(value)
value ? "#{value}s" : nil
Expand Down

0 comments on commit 9d08d00

Please sign in to comment.