Refactor common functions to common.ex

This commit is contained in:
Rin Toshaka 2018-12-06 18:01:28 +01:00
commit ca7b46fb3b
2 changed files with 12 additions and 8 deletions

View file

@ -67,13 +67,19 @@ defmodule Mix.Tasks.Pleroma.Instance do
)
name =
Common.get_option(options, :name, "What is the name of your instance? (e.g. Pleroma/Soykaf)")
Common.get_option(
options,
:name,
"What is the name of your instance? (e.g. Pleroma/Soykaf)"
)
email = Common.get_option(options, :admin_email, "What is your admin email address?")
dbhost = Common.get_option(options, :dbhost, "What is the hostname of your database?", "localhost")
dbhost =
Common.get_option(options, :dbhost, "What is the hostname of your database?", "localhost")
dbname = Common.get_option(options, :dbname, "What is the name of your database?", "pleroma_dev")
dbname =
Common.get_option(options, :dbname, "What is the name of your database?", "pleroma_dev")
dbuser =
Common.get_option(
@ -145,7 +151,4 @@ defmodule Mix.Tasks.Pleroma.Instance do
)
end
end
end