Refactor common functions to common.ex
This commit is contained in:
parent
4a2a7ce636
commit
ca7b46fb3b
2 changed files with 12 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue