Skip to content
Snippets Groups Projects
Commit faf1f2b3 authored by rinpatch's avatar rinpatch :speech_balloon:
Browse files

Move gen.instance to instance.ex

parent 7983b0bd
No related branches found
No related tags found
1 merge request!509Rebased !243
defmodule Mix.Tasks.Pleroma.Gen.Instance do
defmodule Mix.Tasks.Pleroma.Instance do
use Mix.Task
alias Pleroma.{Repo, User}
@shortdoc "Generates the configuration for a new instance"
@shortdoc "Manages Pleroma instance"
@moduledoc """
Generates the configuration for a new instance.
Manages Pleroma instance.
If any options are left unspecified, you will be prompted interactively. This
means the simplest invocation would be
## Generate a new instance.
mix pleroma.instance new [OPTION...]
mix pleroma.gen.instance
If any options are left unspecified, you will be prompted interactively
## Options
......@@ -24,7 +26,7 @@ defmodule Mix.Tasks.Pleroma.Gen.Instance do
- `--dbpass DBPASS` - the password to use for the database connection
"""
def run(rest) do
def run(["new" | rest]) do
{options, [], []} =
OptionParser.parse(
rest,
......@@ -159,3 +161,4 @@ defp escape_sh_path(path) do
~S(') <> String.replace(path, ~S('), ~S(\')) <> ~S(')
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment