Replaced string interpolations with to build paths

This commit is contained in:
Igor Alexandrov
2024-03-28 20:25:24 +04:00
parent 8bb596e216
commit 511a182539
5 changed files with 5 additions and 5 deletions

View File

@@ -134,7 +134,7 @@ class Kamal::Configuration::Accessory
end
def expand_host_path(host_path)
absolute_path?(host_path) ? host_path : "#{service_data_directory}/#{host_path}"
absolute_path?(host_path) ? host_path : File.join(service_data_directory, host_path)
end
def absolute_path?(path)