Move generate_invite to user.ex

This commit is contained in:
Rin Toshaka 2018-12-02 20:26:15 +01:00
commit 57c71f8468
3 changed files with 26 additions and 25 deletions

View file

@ -6,7 +6,7 @@ defmodule Mix.Tasks.Pleroma.Instance do
@moduledoc """
Manages Pleroma instance.
## Generate a new instance.
## Generate a new instance config.
mix pleroma.instance new [OPTION...]
@ -145,6 +145,7 @@ defmodule Mix.Tasks.Pleroma.Instance do
end
end
defp escape_sh_path(path) do
~S(') <> String.replace(path, ~S('), ~S(\')) <> ~S(')
end