some refactor and tests

This commit is contained in:
Alexander Strizhakov 2020-01-21 17:49:22 +03:00
commit f01ab6cd29
No known key found for this signature in database
GPG key ID: 022896A53AEF1381
10 changed files with 308 additions and 201 deletions

View file

@ -21,7 +21,10 @@ else
IO.puts(warning)
end
exported_config = Path.join([Path.dirname(config_path), "prod.exported_from_db.secret.exs"])
exported_config =
config_path
|> Path.dirname()
|> Path.join("prod.exported_from_db.secret.exs")
if File.exists?(exported_config) do
import_config exported_config