add overriding truncated_namespace condition for truncating paths for digital ocean
This commit is contained in:
parent
750de7d842
commit
6c96d68f77
|
@ -13,9 +13,14 @@ def get_file(file) do
|
|||
bucket = Keyword.fetch!(config, :bucket)
|
||||
|
||||
bucket_with_namespace =
|
||||
if namespace = Keyword.get(config, :bucket_namespace) do
|
||||
cond do
|
||||
truncated_namespace = Keyword.get(config, :truncated_namespace) ->
|
||||
truncated_namespace
|
||||
|
||||
namespace = Keyword.get(config, :bucket_namespace) ->
|
||||
namespace <> ":" <> bucket
|
||||
else
|
||||
|
||||
true ->
|
||||
bucket
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue