Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pleroma
pleroma
Commits
faf1f2b3
Commit
faf1f2b3
authored
6 years ago
by
rinpatch
Browse files
Options
Downloads
Patches
Plain Diff
Move gen.instance to instance.ex
parent
7983b0bd
No related branches found
Branches containing commit
No related tags found
1 merge request
!509
Rebased !243
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/mix/tasks/pleroma/instance.ex
+10
-7
10 additions, 7 deletions
lib/mix/tasks/pleroma/instance.ex
with
10 additions
and
7 deletions
lib/mix/tasks/pleroma/
gen_
instance.ex
→
lib/mix/tasks/pleroma/instance.ex
+
10
−
7
View file @
faf1f2b3
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment