aboutsummaryrefslogtreecommitdiff
path: root/lib/mix/tasks/pleroma/instance.ex
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-06-10 13:03:48 +0000
committerlain <lain@soykaf.club>2019-06-10 13:03:48 +0000
commit8fd68b8039c81a4e7b6dd1232c32fa2e736b1ea2 (patch)
tree1dc9bc9e0e0e0f5ae894a9c75ae3ca45bef49808 /lib/mix/tasks/pleroma/instance.ex
parent3d7bb4712436ca80b840b35c39674e2f951cecbe (diff)
parentdbe4c2b7c8cfec4d8348de869a86c03015a7b7c5 (diff)
downloadpleroma-8fd68b8039c81a4e7b6dd1232c32fa2e736b1ea2.tar.gz
Merge branch 'feature/releases' into 'develop'
Releases See merge request pleroma/pleroma!1261
Diffstat (limited to 'lib/mix/tasks/pleroma/instance.ex')
-rw-r--r--lib/mix/tasks/pleroma/instance.ex12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mix/tasks/pleroma/instance.ex b/lib/mix/tasks/pleroma/instance.ex
index 6cee8d630..88925dbaf 100644
--- a/lib/mix/tasks/pleroma/instance.ex
+++ b/lib/mix/tasks/pleroma/instance.ex
@@ -155,17 +155,17 @@ defmodule Mix.Tasks.Pleroma.Instance do
dbpass: dbpass
)
- Mix.shell().info(
+ Common.shell_info(
"Writing config to #{config_path}. You should rename it to config/prod.secret.exs or config/dev.secret.exs."
)
File.write(config_path, result_config)
- Mix.shell().info("Writing #{psql_path}.")
+ Common.shell_info("Writing #{psql_path}.")
File.write(psql_path, result_psql)
write_robots_txt(indexable)
- Mix.shell().info(
+ Common.shell_info(
"\n" <>
"""
To get started:
@@ -179,7 +179,7 @@ defmodule Mix.Tasks.Pleroma.Instance do
end
)
else
- Mix.shell().error(
+ Common.shell_error(
"The task would have overwritten the following files:\n" <>
(Enum.map(paths, &"- #{&1}\n") |> Enum.join("")) <>
"Rerun with `--force` to overwrite them."
@@ -204,10 +204,10 @@ defmodule Mix.Tasks.Pleroma.Instance do
if File.exists?(robots_txt_path) do
File.cp!(robots_txt_path, "#{robots_txt_path}.bak")
- Mix.shell().info("Backing up existing robots.txt to #{robots_txt_path}.bak")
+ Common.shell_info("Backing up existing robots.txt to #{robots_txt_path}.bak")
end
File.write(robots_txt_path, robots_txt)
- Mix.shell().info("Writing #{robots_txt_path}.")
+ Common.shell_info("Writing #{robots_txt_path}.")
end
end