aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRin Toshaka <rinpatch@sdf.org>2018-12-02 19:18:06 +0100
committerRin Toshaka <rinpatch@sdf.org>2018-12-02 19:18:06 +0100
commitfaf1f2b304d8b2a7e26856e767002f3fcf46d67c (patch)
tree4191c1ab4644be9576900d0d925e502d9841260c /lib
parent7983b0bdfe40c88d159af2f0562d96e8812c31e3 (diff)
downloadpleroma-faf1f2b304d8b2a7e26856e767002f3fcf46d67c.tar.gz
Move gen.instance to instance.ex
Diffstat (limited to 'lib')
-rw-r--r--lib/mix/tasks/pleroma/instance.ex (renamed from lib/mix/tasks/pleroma/gen_instance.ex)17
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/mix/tasks/pleroma/gen_instance.ex b/lib/mix/tasks/pleroma/instance.ex
index 94f2220b1..639893985 100644
--- a/lib/mix/tasks/pleroma/gen_instance.ex
+++ b/lib/mix/tasks/pleroma/instance.ex
@@ -1,14 +1,16 @@
-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 @@ defmodule Mix.Tasks.Pleroma.Gen.Instance do
~S(') <> String.replace(path, ~S('), ~S(\')) <> ~S(')
end
end
+